-- this function takes an rgb color value as its argument and returns a cmyk property list.
-- cmyk values are expressed as percentages from 0 to 1
-- a yellow value of 0.5 signifies 50% yellow
on cmyk rgbval
cyan = ( 255 - rgbval.red ) / 255.0
magenta = ( 255 - rgbval.green ) / 255.0
yellow = ( 255 - rgbval.blue ) / 255.0
black = min ( [ cyan, magenta, yellow ] )
cmykval = [ #cyan: cyan, #magenta: magenta, #yellow: yellow, #black: black]
return cmykval
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA