Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/intpic/doc/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 30.7.2024 mit Größe 11 kB image not shown  

Quelle  chap3_mj.html   Sprache: HTML

 
 products/Sources/formale Sprachen/GAP/pkg/intpic/doc/chap3_mj.html


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<script type="text/javascript"
  src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<title>GAP (IntPic) - Chapter 3: 
    The colors in the IntPic package
  </title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="generator" content="GAPDoc2HTML" />
<link rel="stylesheet" type="text/css" href="manual.css" />
<script src="manual.js" type="text/javascript"></script>
<script type="text/javascript">overwriteStyle();</script>
</head>
<body class="chap3"  onload="jscontent()">


<div class="chlinktop"><span class="chlink1">Goto Chapter: </span><a href="chap0_mj.html">Top</a>  <a href="chap1_mj.html">1</a>  <a href="chap2_mj.html">2</a>  <a href="chap3_mj.html">3</a>  <a href="chap4_mj.html">4</a>  <a href="chap5_mj.html">5</a>  <a href="chap6_mj.html">6</a>  <a href="chapBib_mj.html">Bib</a>  <a href="chapInd_mj.html">Ind</a>  </div>

<div class="chlinkprevnexttop"> <a href="chap0_mj.html">[Top of Book]</a>   <a href="chap0_mj.html#contents">[Contents]</a>    <a href="chap2_mj.html">[Previous Chapter]</a>    <a href="chap4_mj.html">[Next Chapter]</a>   </div>

<p id="mathjaxlink" class="pcenter"><a href="chap3.html">[MathJax off]</a></p>
<p><a id="X84CF24A9842321F1" name="X84CF24A9842321F1"></a></p>
<div class="ChapSects"><a href="chap3_mj.html#X84CF24A9842321F1">3 <span class="Heading">
    The colors in the <strong class="pkg">IntPic</strong> package
  </span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap3_mj.html#X85FF17E579A5481F">3.1 <span class="Heading">Colors by tones</span></a>
</span>
</div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap3_mj.html#X835CFDFB7C27CC26">3.2 <span class="Heading">Lists of colors</span></a>
</span>
</div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap3_mj.html#X8398FC50810C46E9">3.3 <span class="Heading">The <strong class="pkg">IntPic</strong> default list of colors</span></a>
</span>
</div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap3_mj.html#X7BD48BC279D8FDF4">3.4 <span class="Heading">Functions to deal with colors</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X795C4D9A7B1A2600">3.4-1 <span class="Heading">Shuffle colors from lists of colors</span></a>
</span>
</div></div>
</div>

<h3>3 <span class="Heading">
    The colors in the <strong class="pkg">IntPic</strong> package
  </span></h3>

<p>The idea in what concerns the colors is the following: the reader is free to choose his colors (taking into account that the latex <strong class="pkg">xcolor</strong> package is used), but we try to make users life reasonably easy. He is allowed to choose tones. The default colors used by <span class="URL"><a href="https://gap-packages.github.io/intpic/">IntPic</a></span> are not many, although (from our experience) sufficient for most examples.</p>

<p><a id="X85FF17E579A5481F" name="X85FF17E579A5481F"></a></p>

<h4>3.1 <span class="Heading">Colors by tones</span></h4>

<p>The colors are divided by tones.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">IP_ColorsRedTones; #red</span>
"red""red!50""red!20""red!80!green!50""red!80!blue!60" ]
</pre></div>

<p><br><center><img src="../images/red_tones.jpg"></center><br></p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">IP_ColorsGreenTones; #green</span>
"green""green!50""green!20""green!80!red!50""green!80!blue!60" ]
</pre></div>

<p><br><center><img src="../images/green_tones.jpg"></center><br></p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">IP_ColorsBlueTones; #blue</span>
"blue""blue!50""blue!20""blue!80!red!50""blue!80!green!60" ]
</pre></div>

<p><br><center><img src="../images/blue_tones.jpg"></center><br></p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">IP_ColorsCompRedTones; # cyan (complement of red)</span>
"-red""-red!50""-red!20""-red!80!green!50""-red!80!blue!60" ]
</pre></div>

<p><br><center><img src="../images/comp_red_tones.jpg"></center><br></p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">IP_ColorsCompGreenTones; # magenta (complement of green)</span>
"-green""-green!50""-green!20""-green!80!red!50""-green!80!blue!60" 
 ]
</pre></div>

<p><br><center><img src="../images/comp_green_tones.jpg"></center><br></p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">IP_ColorsCompBlueTones; # yellow (complement of blue)</span>
"-blue""-blue!50""-blue!20""-blue!80!red!50""-blue!80!green!60" ]
</pre></div>

<p><br><center><img src="../images/comp_blue_tones.jpg"></center><br></p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">IP_ColorsDGrayTones; # dark gray</span>
"black!80""black!70""black!60""black!50""black!40" ]
</pre></div>

<p><br><center><img src="../images/dark_gray_tones.jpg"></center><br></p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">IP_ColorsLGrayTones; # light gray</span>
"black!30""black!25""black!20""black!15""black!10" ]
</pre></div>

<p><br><center><img src="../images/light_gray_tones.jpg"></center><br></p>

<p><a id="X835CFDFB7C27CC26" name="X835CFDFB7C27CC26"></a></p>

<h4>3.2 <span class="Heading">Lists of colors</span></h4>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">ListsOfIP_Colors;</span>
[ [ "red""red!50""red!20""red!80!green!50""red!80!blue!60" ], 
  [ "green""green!50""green!20""green!80!red!50""green!80!blue!60" ], 
  [ "blue""blue!50""blue!20""blue!80!red!50""blue!80!green!60" ], 
  [ "-red""-red!50""-red!20""-red!80!green!50""-red!80!blue!60" ], 
  [ "-green""-green!50""-green!20""-green!80!red!50"
      "-green!80!blue!60" ], 
  [ "-blue""-blue!50""-blue!20""-blue!80!red!50""-blue!80!green!60" ],
  [ "black!80""black!70""black!60""black!50""black!40" ], 
  [ "black!30""black!25""black!20""black!15""black!10" ] ]
</pre></div>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">IP_Colors;</span>
"red""red!50""red!20""red!80!green!50""red!80!blue!60""green"
  "green!50""green!20""green!80!red!50""green!80!blue!60""blue"
  "blue!50""blue!20""blue!80!red!50""blue!80!green!60""-red"
  "-red!50""-red!20""-red!80!green!50""-red!80!blue!60""-green"
  "-green!50""-green!20""-green!80!red!50""-green!80!blue!60""-blue"
  "-blue!50""-blue!20""-blue!80!red!50""-blue!80!green!60""black!80"
  "black!70""black!60""black!50""black!40""black!30""black!25"
  "black!20""black!15""black!10" ]
</pre></div>

<p><a id="X8398FC50810C46E9" name="X8398FC50810C46E9"></a></p>

<h4>3.3 <span class="Heading">The <strong class="pkg">IntPic</strong> default list of colors</span></h4>

<p>The colors are shuffled by concatenating the transposed of the matrix <code class="code">ListsOfIP_Colors</code>. The list obtained is taken as the default list of colors.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">ShuffledIP_colors;</span>
"red""green""blue""-red""-green""-blue""black!80""black!30"
  "red!50""green!50""blue!50""-red!50""-green!50""-blue!50"
  "black!70""black!25""red!20""green!20""blue!20""-red!20"
  "-green!20""-blue!20""black!60""black!20""red!80!green!50"
  "green!80!red!50""blue!80!red!50""-red!80!green!50""-green!80!red!50",
  "-blue!80!red!50""black!50""black!15""red!80!blue!60"
  "green!80!blue!60""blue!80!green!60""-red!80!blue!60"
  "-green!80!blue!60""-blue!80!green!60""black!40""black!10" ]
</pre></div>

<p><br><center><img src="../images/intpic_default_colors.jpg"></center><br> These are the <span class="URL"><a href="https://gap-packages.github.io/intpic/">IntPic</a></span> default colors. Although the user is free to use other colors, we warn that there is a need of compatibility with the colors used in other packages (the LaTeX <strong class="pkg">xcolor</strong>, for instance). To emphasize the integers of some sets by using some of the colors in some list of colors (for instance the default colors) one may use empty lists to force the non usage of the colors whose order in the list of colors is the order of these empty lists in the array of integers to be emphasized.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">m3 := Filtered([1..40],i->i mod 3=0);</span>
[ 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39 ]
<span class="GAPprompt">gap></span> <span class="GAPinput">m5 := Filtered([1..40],i->i mod 5=0);</span>
[ 5, 10, 15, 20, 25, 30, 35, 40 ]
<span class="GAPprompt">gap></span> <span class="GAPinput">m7 := Filtered([1..40],i->i mod 7=0);</span>
[ 7, 14, 21, 28, 35 ]
<span class="GAPprompt">gap></span> <span class="GAPinput"></span>
<span class="GAPprompt">gap></span> <span class="GAPinput">arr := [[],[],m3,[],m5,[],m7];;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">tkz:=IP_TikzArrayOfIntegers([1..40],10,rec(highlights:=arr));;</span>
</pre></div>

<p><br><center><img src="../images/mults_3_5_7.jpg"></center><br></p>

<p><a id="X7BD48BC279D8FDF4" name="X7BD48BC279D8FDF4"></a></p>

<h4>3.4 <span class="Heading">Functions to deal with colors</span></h4>

<p>For the moment we only provide one function, which shuffles colors from lists of colors.</p>

<p><a id="X795C4D9A7B1A2600" name="X795C4D9A7B1A2600"></a></p>

<h5>3.4-1 <span class="Heading">Shuffle colors from lists of colors</span></h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ ShuffleIP_Colors</code>( <var class="Arg">mat</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>The argument <var class="Arg">mat</var> is a list of lists of colors of the same length. The output is obtained by concatenating the transposed of <var class="Arg">mat</var>.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">ShuffleIP_Colors([IP_ColorsRedTones,IP_ColorsCompBlueTones]);</span>
"red""-blue""red!50""-blue!50""red!20""-blue!20"
  "red!80!green!50""-blue!80!red!50""red!80!blue!60""-blue!80!green!60" 
 ]
</pre></div>

<p><br><center><img src="../images/shuffle_red_comp_blue.jpg"></center><br></p>


<div class="chlinkprevnextbot"> <a href="chap0_mj.html">[Top of Book]</a>   <a href="chap0_mj.html#contents">[Contents]</a>    <a href="chap2_mj.html">[Previous Chapter]</a>    <a href="chap4_mj.html">[Next Chapter]</a>   </div>


<div class="chlinkbot"><span class="chlink1">Goto Chapter: </span><a href="chap0_mj.html">Top</a>  <a href="chap1_mj.html">1</a>  <a href="chap2_mj.html">2</a>  <a href="chap3_mj.html">3</a>  <a href="chap4_mj.html">4</a>  <a href="chap5_mj.html">5</a>  <a href="chap6_mj.html">6</a>  <a href="chapBib_mj.html">Bib</a>  <a href="chapInd_mj.html">Ind</a>  </div>

<hr />
<p class="foot">generated by <a href="https://www.math.rwth-aachen.de/~Frank.Luebeck/GAPDoc">GAPDoc2HTML</a></p>
</body>
</html>

100%


¤ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.