PSTricks - Graphics for T<span class="e">e</span>X and L<span class="a">a</span>T<span class="e">e</span>X


Welcome to the PSTricks web site

Colors
TUG logo

Main page

Index
Bug list
Documentation
Doc errors
Examples
2D Gallery
3D Gallery
Packages
References
CTAN
Search CTAN:
Germany
USA

Statistics

 


Extended translation of the the 5th edition

 


the 7th edition, total of 960 colored pages

 


2nd edition, 212 pages, includes 32 color pages

 


 


 


 


 


 

 

 


 


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 | 


simulated transparency defining an alpha channel
color3.png color3.png color3.png

Mixed colors using cmyk color model
Mixed-Color.jpg color6.png


Colors Color sequence
pstcolor.png pstcolor.png

Color gradients with pst-slpe
xcolor0.png

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
color4.png color5.png

Color gradients with lines
contColor0.png contColor1.png
contColor2.png

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 
}}

local time: Thu Nov 21 11:39:24 CET 2024 ; file is: 779.80181712963 days old
contact webmaster _at_ perce.de