pike.ida.liu.se
Search for
Home > Docs > Pike reference

[Top]
Colors

Colors.rgb_to_cmyk()


Method rgb_to_cmyk

array(int(0..100)) rgb_to_cmyk(array(int(0..255)) rgb)
array(int(0..100)) rgb_to_cmyk(int(0..255) r, int(0..255) g, int(0..255) b)

Description

This function returns the CMYK value of the color described by the provided RGB value. It is essentially calling Image.Color.rgb(r,g,b)->cmyk().

See also

Colors.cmyk_to_rgb() Image.Color.Color.cmyk()

Module reference for Pike v7.8 release 116, 2008-12-31