int ps_makespotcolor ( resource psdoc, string name [, float reserved] )
Creates a spot color from the current fill color. The fill color must be
defined in rgb, cmyk or gray colorspace. The spot color name can be an
arbitrary name. A spot color can be set as any color with
ps_setcolor(). When the document is not printed
but displayed by an postscript viewer the given color in the specified
color space is use.
Parameters
psdoc
Resource identifier of the postscript file
as returned by ps_new().
name
Name of the spot color, e.g. Pantone 5565.
Return Values
The id of the new spot color or 0 in case of an error.
Examples
Example 1. Creating and using a spot color
<?php $ps = ps_new(); if (!ps_open_file($ps, "spotcolor.ps")) { print "Cannot open PostScript file\n"; exit; }