[XeTeX] Colour specials for XeTeX
Ulrike Fischer
news3 at nililand.de
Mon Jun 8 12:40:15 CEST 2020
Am Mon, 8 Jun 2020 11:28:56 +0200 schrieb Zdenek Wagner:
> PostScript can directly set both the colour and
> the colour model by setgray, setrgbcolor, setcmykcolor or first change
> the model and then set the colour by setcolor the number of parameters
> of which depend on the current colour model, while PDF needs k and K
> for CMYK, rg and RG for RGB, g and G for greyscale.
You can in PDF also use the setmodel/setcolor syntax with rgb etc.
e.g.
/DeviceRGB CS /DeviceRGB cs %set model
1 0 0 SCN 1 0 0 scn %set color
The RG/rg operator are only a shortcut.
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
More information about the XeTeX
mailing list.