Click or drag to resize
ColorCMYKFromRGB Method (Single, Single, Single, Single)
Converts the given RGB color to the CMYK color space.

Namespace: Experilous.MakeItColorful
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static ColorCMYK FromRGB(
	float r,
	float g,
	float b,
	float a
)

Parameters

r
Type: SystemSingle
The red component of the RGB color to convert to CMYK.
g
Type: SystemSingle
The green component of the RGB color to convert to CMYK.
b
Type: SystemSingle
The blue component of the RGB color to convert to CMYK.
a
Type: SystemSingle
The opacity of the color.

Return Value

Type: ColorCMYK
The CMYK representation of the given color.
See Also