|
alpha channel |
Colors - by index |
Colors - mixed |
Colored text |
Colors |
Color gradients with lines/curves |
Gradients with package pst-slpe |
Indexed colors |
Mixed Color |
pst-slpe |
RGB to CMYK |
RGB to GRAY |
Transparency colors |
Transparency colors in a 3D ccordinate system |
Colors by index |
With the \colorseries macro of the package xcolor.sty it is easy to use the colors by an index.
The color is set by linecolor={name!![index]} . The braces are
not needed when using \psset
|
|
|
|
|
RGB to CMYK
Put the following code into your preamble if you cannot change the PostScript code yourself.
\AtBeginDocument{\special{ps:
/setrgbcolor {
1 sub neg /Y exch def
1 sub neg /M exch def
1 sub neg /C exch def
/K 1 def
C K lt { /K C def } if
M K lt { /K M def } if
Y K lt { /K Y def } if
K 1 eq { 0 0 0 }{ % Black 0 0 0 1
/K1 1 K sub def
C K sub K1 div M K sub K1 div Y K sub K1 div } ifelse
K setcmykcolor
} def
}}
RGB to GRAY
Put the following code into your preamble if you cannot change the PostScript code yourself.
\AtBeginDocument{\special{ps:
/setrgbcolor { 0.07 mul exch 0.71 mul add exch 0.21 mul add setgray } def
}}
|