1 \section{Colours and the nuances of a colour
}
3 The key word
\texttt{\Lkeyword{fillcolor
}=colourname
} allows us to specify the wanted colour for the outer faces of a solid.
4 The key word
\texttt{\texttt{\Lkeyword{incolor
}=colourname
}} allows us to specify the wanted colour for the inner faces of a solid.
6 The possible values for
\textit{name
} are those known to PSTricks (and particularly those of the package
\texttt{xcolor
}).
8 We can directly use the colour nuances in the
color schemes of
9 HSB, RGB or CMYK. In that case we use the key values
\Lkeyval{hue
},
10 \Lkeyval{inhue
} or
\Lkeyval{inouthue
} for the outer faces, the inner faces, or for all the faces.
11 The number of arguments
\Lkeyval{hue
} determines nuances.
13 \subsection{Predefined
\Index{colours
} by the option
\texttt{dvipsnames
}}
15 There are $
68$~predefined
\Index{colours
}, which are identified by
16 \texttt{solides.pro
}:
\texttt{Black
},
\texttt{White
}, and the
20 \newcommand{\colorcube}[1]{%
21 \begin{pspicture
}(-
1.2,-
1)(
1.2,
1)
22 \psframe(-
1.2,-
1)(
1.2,
1)
23 \psset{viewpoint=
50 50 20 rtp2xyz,Decran=
150,lightsrc=viewpoint
}
24 \psSolid[object=datfile,
26 linewidth=
0.07\pslinewidth,
30 \rput(
0,-
0.75)
{\footnotesize \texttt{#1}}
36 \colorcube{GreenYellow
}
44 \colorcube{YellowOrange
}
46 \colorcube{BurntOrange
}
47 \colorcube{Bittersweet
}
57 \colorcube{WildStrawberry
}
59 \colorcube{CarnationPink
}
71 \colorcube{DarkOrchid
}
75 \colorcube{RoyalPurple
}
76 \colorcube{BlueViolet
}
78 \colorcube{Periwinkle
}
80 \colorcube{CornflowerBlue
}
81 \colorcube{MidnightBlue
}
88 \colorcube{ProcessBlue
}
93 \colorcube{Aquamarine
}
96 \colorcube{JungleGreen
}
100 \colorcube{ForestGreen
}
101 \colorcube{PineGreen
}
102 \colorcube{LimeGreen
}
103 \colorcube{YellowGreen
}
104 \colorcube{SpringGreen
}
106 \colorcube{OliveGreen
}
107 \colorcube{RawSienna
}
115 \subsection{Predefined
\Index{colours
} by the option
\texttt{svgnames
}}
117 The following colours are known by PSTricks, when the option
\texttt{svgnames
} is given.
118 These ones are not identified by the file
\texttt{solides.pro
}: we can use them directly with the option
\Lkeyword{fcol
}.
121 \newcommand{\colorcone}[1]{%
122 \begin{pspicture
}(-
1.2,-
1)(
1.2,
1)
123 \psframe(-
1.2,-
1)(
1.2,
1)
124 \psset{viewpoint=
50 50 20 rtp2xyz,Decran=
150,lightsrc=viewpoint
}
125 \psSolid[object=cone,
126 linewidth=
0.07\pslinewidth,
131 action=draw**
](
0,
0,-
0.05)
132 \rput(
0,-
0.75)
{\footnotesize \texttt{#1}}
140 These colours are delivered from the package
\texttt{xcolor
}.
144 \colorcone{AliceBlue
}
145 \colorcone{AntiqueWhite
}
147 \colorcone{Aquamarine
}
153 \colorcone{BlanchedAlmond
}
155 \colorcone{BlueViolet
}
158 \colorcone{BurlyWood
}
159 \colorcone{CadetBlue
}
160 \colorcone{Chartreuse
}
161 \colorcone{Chocolate
}
163 \colorcone{CornflowerBlue
}
170 \colorcone{DarkGoldenrod
}
173 \colorcone{DarkGreen
}
175 \colorcone{DarkKhaki
}
176 \colorcone{DarkMagenta
}
177 \colorcone{DarkOliveGreen
}
179 \colorcone{DarkOrange
}
180 \colorcone{DarkOrchid
}
182 \colorcone{DarkSalmon
}
183 \colorcone{DarkSeaGreen
}
184 \colorcone{DarkSlateBlue
}
186 \colorcone{DarkSlateGray
}
187 \colorcone{DarkSlateGrey
}
188 \colorcone{DarkTurquoise
}
189 \colorcone{DarkViolet
}
191 \colorcone{DeepSkyBlue
}
195 \colorcone{DodgerBlue
}
196 \colorcone{FireBrick
}
197 \colorcone{FloralWhite
}
198 \colorcone{ForestGreen
}
201 \colorcone{Gainsboro
}
202 \colorcone{GhostWhite
}
204 \colorcone{Goldenrod
}
209 \colorcone{GreenYellow
}
212 \colorcone{IndianRed
}
218 \colorcone{LavenderBlush
}
219 \colorcone{LawnGreen
}
221 \colorcone{LemonChiffon
}
222 \colorcone{LightBlue
}
223 \colorcone{LightCoral
}
224 \colorcone{LightCyan
}
225 \colorcone{LightGoldenrodYellow
}
226 \colorcone{LightGray
}
228 \colorcone{LightGreen
}
229 \colorcone{LightGrey
}
230 \colorcone{LightPink
}
231 \colorcone{LightSalmon
}
232 \colorcone{LightSeaGreen
}
233 \colorcone{LightSkyBlue
}
235 \colorcone{LightSlateGray
}
236 \colorcone{LightSlateGrey
}
237 \colorcone{LightSteelBlue
}
238 \colorcone{LightYellow
}
240 \colorcone{LimeGreen
}
245 \colorcone{MediumAquamarine
}
246 \colorcone{MediumBlue
}
247 \colorcone{MediumOrchid
}
249 \colorcone{MediumPurple
}
250 \colorcone{MediumSeaGreen
}
251 \colorcone{MediumSlateBlue
}
252 \colorcone{MediumSpringGreen
}
253 \colorcone{MediumTurquoise
}
254 \colorcone{MediumVioletRed
}
256 \colorcone{MidnightBlue
}
257 \colorcone{MintCream
}
258 \colorcone{MistyRose
}
260 \colorcone{NavajoWhite
}
265 \colorcone{OliveDrab
}
267 \colorcone{OrangeRed
}
270 \colorcone{PaleGoldenrod
}
271 \colorcone{PaleGreen
}
272 \colorcone{PaleTurquoise
}
273 \colorcone{PaleVioletRed
}
274 \colorcone{PapayaWhip
}
275 \colorcone{PeachPuff
}
280 \colorcone{PowderBlue
}
284 \colorcone{RosyBrown
}
285 \colorcone{RoyalBlue
}
286 \colorcone{SaddleBrown
}
288 \colorcone{SandyBrown
}
295 \colorcone{SlateBlue
}
296 \colorcone{SlateGray
}
298 \colorcone{SlateGrey
}
300 \colorcone{SpringGreen
}
301 \colorcone{SteelBlue
}
307 \colorcone{Turquoise
}
312 \colorcone{WhiteSmoke
}
314 \colorcone{YellowGreen
}
319 \subsection{Nuances in the
\Index{colour scheme
} of
\Index{HSB
},
\Index{saturation
} and maximum
\Index{brilliance
}}
321 There are
2 key values:
\texttt{\Lkeyword{hue
}=$h_0$ $h_1$
} where
322 the numbers $h_0$ and $h_1$ with $
0\leq h_0 < h_1
\leq 1$
323 respect the limits of the colour scheme of HSB.
327 \psset{viewpoint=
50 50 20 rtp2xyz,Decran=
30}
328 \begin{LTXexample
}[width=
7.5cm
]
330 \begin{pspicture
}(-
4,-
1.5)(
3,
1)
331 \psSolid[object=grille,
340 \psset{viewpoint=
50 50 20 rtp2xyz,Decran=
30}
341 \begin{LTXexample
}[width=
7.5cm
]
343 \begin{pspicture
}(-
4,-
1.5)(
3,
1)
344 \psSolid[object=grille,
353 \psset{viewpoint=
50 50 20 rtp2xyz,Decran=
30}
354 \begin{LTXexample
}[width=
7.5cm
]
356 \begin{pspicture
}(-
4,-
1.5)(
3,
1)
357 \psSolid[object=grille,
365 \subsection{Nuances in the
\Index{colour scheme
} of
\Index{HSB
},
\Index{saturation
} and fixed
\Index{brilliance
}}
367 There are
4 key values:
\texttt{\Lkeyword{hue
}=$h_0$ $h_1$ $s$ $b$
} or
368 the numbers $h_0$ and $h_1$ with $
0\leq h_0 < h_1
\leq 1$
369 respect the limits of the colour scheme HSB and $s$
370 and $b$ are the values for
\texttt{saturation
} and
\texttt{brillance
}.
372 \psset{viewpoint=
50 50 20 rtp2xyz,Decran=
30}
373 \begin{LTXexample
}[width=
7.5cm
]
375 \begin{pspicture
}(-
4,-
1.5)(
3,
1)
376 \psSolid[object=grille,
379 hue=
0 1 .8 .7](
0,
0,
0)
386 \psset{viewpoint=
50 50 20 rtp2xyz,Decran=
30}
387 \begin{LTXexample
}[width=
7.5cm
]
389 \begin{pspicture
}(-
4,-
1.5)(
3,
1)
390 \psSolid[object=grille,
397 \subsection{Nuances in the
\Index{colour scheme
} of
\Index{HSB
}, gneral case
}
399 There are
7 key values:
\texttt{\Lkeyword{hue
}=$h_0$ $s_0$ $b_0$ $h_1$ $s_1$
400 $b_1$ (hsb)
} or the numbers $h_i$, $s_i$ and $b_i$ respecting the limits of the parameters of HSB.
404 \psset{viewpoint=
50 50 20 rtp2xyz,Decran=
30}
405 \begin{LTXexample
}[width=
7.5cm
]
407 \begin{pspicture
}(-
4,-
1.5)(
3,
1)
408 \psSolid[object=grille,
411 hue=
0 .8 1 1 1 .7 (hsb)
](
0,
0,
0)
415 \subsection{Nuances in the
\Index{colour scheme
} of
\Index{RGB
}}
417 There are
6 key values:
\texttt{\Lkeyword{hue
}=$r_0$ $g_0$ $b_0$ $r_1$ $g_1$
418 $b_1$
} or the numbers $r_i$, $g_i$ and $b_i$ respecting the limits of the $
3$ parameters of RGB.
422 \psset{viewpoint=
50 50 20 rtp2xyz,Decran=
30}
423 \begin{LTXexample
}[width=
7.5cm
]
425 \begin{pspicture
}(-
4,-
1.5)(
3,
1)
426 \psSolid[object=grille,
429 hue=
1 0 0 0 0 1](
0,
0,
0)
434 \subsection{Nuances in the
\Index{colour scheme
} of
\Index{CMYK
}}
436 There are
8 key values:
\texttt{\Lkeyword{hue
}=$c_0$ $m_0$ $y_0$ $k_0$ $c_1$ $m_1$
437 $y_1$ $k_1$
} or the numbers $c_i$, $m_i$, $y_i$ and $k_i$ respecting the limits of the $
4$ parameters of CMYK.
441 \psset{viewpoint=
50 50 20 rtp2xyz,Decran=
30}
442 \begin{LTXexample
}[width=
7.5cm
]
444 \begin{pspicture
}(-
4,-
1.5)(
3,
1)
445 \psSolid[object=grille,
448 hue=
1 0 0 0 0 0 1 0](
0,
0,
0)
452 \subsection{Nuances between
2 named colours
}
454 There are
2 key values
455 \texttt{\Lkeyword{hue
}=(color1) (color2)
} where
456 \texttt{color1
} and
\texttt{color2
} are the names of colours known by
\verb+solides.pro+.
460 \psset{viewpoint=
50 50 20 rtp2xyz,Decran=
30}
461 \begin{LTXexample
}[width=
7.5cm
]
463 \begin{pspicture
}(-
4,-
1.5)(
3,
1)
464 \psSolid[object=grille,
467 hue=(jaune) (CadetBlue)
](
0,
0,
0)
471 If we like to use some defined colours of
\texttt{xcolor
}, we use the
472 key values
\texttt{color1
},
\texttt{color2
}, etc. from
\Lcs{psSolid
}.
474 \psset{viewpoint=
50 50 20 rtp2xyz,Decran=
30}
475 \begin{LTXexample
}[width=
7.5cm
]
477 \begin{pspicture
}(-
4,-
1.5)(
3,
1)
478 \psSolid[object=grille,
483 hue=(color1) (color2)
](
0,
0,
0)
487 \subsection{Deactivation of the colour application
}
488 For specific purposes it is possible to disable the application of colour.
489 This is particularly the case, when an object is already memorized or defined in external files.
490 Within these configurations, if we do not deactivate the colours and
491 if we do not define some new colours, these will be the colours by default that overwrite the colours that were defined.
494 To deactivate the colour application we use the option
495 \Lkeyword{deactivatecolor
}.