CMYK Constructor

Constructor in CMYK

Declaration

public CMYK(float cyan, float magenta, float yellow, float black)

Description

Creates new CMYK components from the given values.

Parameters

cyanThe cyan component of the color in the range [0..1].
magentaThe magenta component of the color in the range [0..1].
yellowThe yellow component of the color in the range [0..1].
blackThe black component of the color in the range [0..1].

Overload

Declaration

public CMYK(CMYK other)

Description

Creates a new copy of the components.

Parameters

otherThe other components to copy.

Overload

Declaration

public CMYK(Color color)

Description

Creates new CMYK components from the given color.

Parameters

colorThe color to extract the components from.