Tools for generating the Volumetric Regimes book https://volumetricregimes.xyz/ (wiki-to-print, using Paged.js)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
433 B

%!
/sys_setcolorspace /setcolorspace load def
/sys_setcolor /setcolor load def
userdict/is_rgb false put
/setcolorspace
{
sys_setcolorspace
currentcolorspace 0 get /DeviceRGB eq
userdict/is_rgb 3 -1 roll put
}bind def
/setcolor
{
userdict/is_rgb get not
{sys_setcolor}
{
3 copy
2 copy eq 4 1 roll eq exch pop and
{setgray pop pop (!\n)print flush}
{/DeviceRGB sys_setcolorspace sys_setcolor}ifelse
}ifelse
}bind def
%