Color.fromCMYK

Overview | Methods | Fields | This Package | All Packages

Color.fromCMYK

Creates a new Color object based on the specified color values.

Syntax

public static final Color fromCMYK( int cyan, int magenta, int yellow, int black )

Parameters

cyan

The level of cyan in the color.

magenta

The level of magenta in the color.

yellow

The level of yellow in the color.

black

The level of black in the color.

Return Value

Returns the new Color object.

Remarks

If any of the color levels specified exceed 255, the color is reduced to 255.

See Also   fromHSB