<Chapter Label="colors">
<Heading>
The colors in the <Package>IntPic</Package> package
</Heading> <!--<Index>&IntPic; - colors</Index>-->
The idea in what concerns the colors is the following: the reader is free to
choose his colors (taking into account that the latex <Package>xcolor</Package> package is
used), but we try to make users life reasonably easy. He is allowed to choose
tones. The default colors used by &IntPic; are not many, although (from our
experience) sufficient for most examples. <!--Furthermore, we have functions that, especially when only a few of
the available colors are used, chose quite different colors.-->
<Section>
<Heading>Colors by tones</Heading>
The colors are divided by tones. <!-- <Subsection>
<Heading>Tones</Heading>-->
<Listing Type="red"><![CDATA[
gap> IP_ColorsRedTones; #red
[ "red", "red!50", "red!20", "red!80!green!50", "red!80!blue!60" ]
]]></Listing>
<Alt Only="LaTeX">
\begin{center}
\includegraphics[scale=1.2]{../images/red_tones.pdf}
\end{center}
</Alt>
<Alt Only="HTML"> 60;br62;60;center62;60;img src=pan style='color: green'>34;../images/red_tones.jpg34;pan style='color: green'>62;60;/center62;60;br62;
</Alt>
<Listing Type="green"><![CDATA[
gap> IP_ColorsGreenTones; #green
[ "green", "green!50", "green!20", "green!80!red!50", "green!80!blue!60" ]
]]></Listing>
<Alt Only="LaTeX">
\begin{center}
\includegraphics[scale=1.2]{../images/green_tones.pdf}
\end{center}
</Alt>
<Alt Only="HTML"> 60;br62;60;center62;60;img src=pan style='color: green'>34;../images/green_tones.jpg34;62;60;/center62;60;br62;
</Alt>
<Listing Type="blue"><![CDATA[
gap> IP_ColorsBlueTones; #blue
[ "blue", "blue!50", "blue!20", "blue!80!red!50", "blue!80!green!60" ]
]]></Listing>
<Alt Only="LaTeX">
\begin{center}
\includegraphics[scale=1.2]{../images/blue_tones.pdf}
\end{center}
</Alt>
<Alt Only="HTML"> 60;br62;60;center62;60;img src=pan style='color: green'>34;../images/blue_tones.jpg34;<span style='color: green'>62;60;/center62;60;br62;
</Alt>
<Listing Type="cyan"><![CDATA[
gap> IP_ColorsCompRedTones; # cyan (complement of red)
[ "-red", "-red!50", "-red!20", "-red!80!green!50", "-red!80!blue!60" ]
]]></Listing>
<Alt Only="LaTeX">
\begin{center}
\includegraphics[scale=1.2]{../images/comp_red_tones.pdf}
\end{center}
</Alt>
<Alt Only="HTML"> 60;br62;60;center62;60;img src=pan style='color: green'>34;../images/comp_red_tones.jpg>34;62;60;/center62;60;br62;
</Alt>
<Listing Type="magenta"><![CDATA[
gap> IP_ColorsCompGreenTones; # magenta (complement of green)
[ "-green", "-green!50", "-green!20", "-green!80!red!50", "-green!80!blue!60"
]
]]></Listing>
<Alt Only="LaTeX">
\begin{center}
\includegraphics[scale=1.2]{../images/comp_green_tones.pdf}
\end{center}
</Alt>
<Alt Only="HTML"> 60;br62;60;center62;60;img src=pan style='color: green'>34;../images/comp_green_tones.jpg34;62;60;/center='color: green'>62;60;br62;
</Alt>
<Listing Type="yellow"><![CDATA[
gap> IP_ColorsCompBlueTones; # yellow (complement of blue)
[ "-blue", "-blue!50", "-blue!20", "-blue!80!red!50", "-blue!80!green!60" ]
]]></Listing>
<Alt Only="LaTeX">
\begin{center}
\includegraphics[scale=1.2]{../images/comp_blue_tones.pdf}
\end{center}
</Alt>
<Alt Only="HTML"> 60;br62;60;center62;60;img src=pan style='color: green'>34;../images/comp_blue_tones.jpg34;62;60;/center'color: green'>62;60;br62;
</Alt>
<Listing Type="dark gray"><![CDATA[
gap> IP_ColorsDGrayTones; # dark gray
[ "black!80", "black!70", "black!60", "black!50", "black!40" ]
]]></Listing>
<Alt Only="LaTeX">
\begin{center}
\includegraphics[scale=1.2]{../images/dark_gray_tones.pdf}
\end{center}
</Alt>
<Alt Only="HTML"> 60;br62;60;center62;60;img src=pan style='color: green'>34;../images/dark_gray_tones.jpg34;62;60;/center'color: green'>62;60;br62;
</Alt>
<Listing Type="light gray"><![CDATA[
gap> IP_ColorsLGrayTones; # light gray
[ "black!30", "black!25", "black!20", "black!15", "black!10" ]
]]></Listing>
<Alt Only="LaTeX">
\begin{center}
\includegraphics[scale=1.2]{../images/light_gray_tones.pdf}
\end{center}
</Alt>
<Alt Only="HTML"> 60;br62;60;center62;60;img src=pan style='color: green'>34;../images/light_gray_tones.jpg34;62;60;/center='color: green'>62;60;br62;
</Alt>
</Section>
<Section>
<Heading>Lists of colors</Heading>
<Listing Type="array of colors by tones"><![CDATA[
gap> ListsOfIP_Colors;
[ [ "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" ] ]
]]></Listing>
<Listing Type="list of colors by tones"><![CDATA[
gap> IP_Colors;
[ "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" ]
]]></Listing>
</Section>
<Section>
<Heading>The <Package>IntPic</Package> default list of colors</Heading>
The colors are shuffled by concatenating the transposed of the matrix
<C>ListsOfIP_Colors</C>. The list obtained is taken as the default list of colors.
<Listing Type="default list of colors"><![CDATA[
gap> ShuffledIP_colors;
[ "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" ]
]]></Listing>
<Alt Only="LaTeX">
\begin{center}
\includegraphics[width=0.8\textwidth]{../images/intpic_default_colors.pdf}
\end{center}
</Alt>
<Alt Only="HTML"> 60;br62;60;center62;60;img src=pan style='color: green'>34;../images/intpic_default_colors.jpg34;62;60;/centerstyle='color: green'>62;60;br62;
</Alt>
These are the &IntPic; 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; <Package>xcolor</Package>, 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.
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 und die Messung sind noch experimentell.