Click or drag to resize
ColorCMYK Structure
A color struct for storing and maniputing colors in the CMYK (cyan, magenta, yellow, and key) color space.

Namespace: Experilous.MakeItColorful
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
[SerializableAttribute]
public struct ColorCMYK : IEquatable<ColorCMYK>, 
	IComparable<ColorCMYK>

The ColorCMYK type exposes the following members.

Constructors
  NameDescription
Public methodColorCMYK(Color)
Initializes a color by converting the given RGB color to the CMYK color space.
Public methodColorCMYK(ColorCMY)
Initializes a color by converting the given CMY color to the CMYK color space.
Public methodColorCMYK(ColorHCL)
Initializes a color by converting the given HCL color to the CMYK color space.
Public methodColorCMYK(ColorHCV)
Initializes a color by converting the given HCV color to the CMYK color space.
Public methodColorCMYK(ColorHCY)
Initializes a color by converting the given HCY color to the CMYK color space.
Public methodColorCMYK(ColorHSL)
Initializes a color by converting the given HSL color to the CMYK color space.
Public methodColorCMYK(ColorHSV)
Initializes a color by converting the given HSV color to the CMYK color space.
Public methodColorCMYK(ColorHSY)
Initializes a color by converting the given HSY color to the CMYK color space.
Public methodColorCMYK(Single, Single, Single, Single)
Initializes a color with the given cyan, magenta, and yellow, assuming an opacity of 1.
Public methodColorCMYK(Single, Single, Single, Single, Single)
Initializes a color with the given cyan, magenta, yellow, and opacity.
Top
Properties
  NameDescription
Public propertyStatic memberblack
Solid black. CMYKA is (0, 0, 0, 1, 1).
Public propertyStatic memberblue
Solid blue. CMYKA is (1, 1, 0, 0, 1).
Public propertyStatic memberclear
Completely transparent black. CMYKA is (0, 0, 0, 1, 0).
Public propertyStatic membercyan
Solic cyan. CMYKA is (1, 0, 0, 0, 1).
Public propertyStatic membergray
Solid gray. CMYKA is (0, 0, 0, 1/2, 1).
Public propertyStatic membergreen
Solid green. CMYKA is (1, 0, 1, 0, 1).
Public propertyStatic membergrey
Solid gray, with English spelling. CMYKA is (0, 0, 0, 1/2, 1).
Public propertyItem
Provides access to the five color channels using a numeric zero-based index.
Public propertyStatic membermagenta
Solid magenta. CMYKA is (0, 1, 0, 0, 1).
Public propertyStatic memberred
Solid red. CMYKA is (0, 1, 1, 0, 1).
Public propertyStatic memberwhite
Solid white. CMYKA is (0, 0, 0, 0, 1).
Public propertyStatic memberyellow
Solid yellow. CMYKA is (0, 0, 1, 0, 1).
Top
Methods
  NameDescription
Public methodStatic memberAreOrdered
Checks if the first color is lexicographically ordered before the second color.
Public methodCompare
Determines the ordering of the first color in relation to the second color.
Public methodCompareTo
Determines the ordering of this color with the specified color.
Public methodEquals(Object)
Checks if the color is equal to a specified color.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(ColorCMYK)
Checks if the color is equal to a specified color.
Public methodStatic memberFromCMY(Single, Single, Single)
Converts the given CMY color to the CMYK color space.
Public methodStatic memberFromCMY(Single, Single, Single, Single)
Converts the given CMY color to the CMYK color space.
Public methodStatic memberFromHCL(Single, Single, Single)
Converts the given HCL color to the CMYK color space.
Public methodStatic memberFromHCL(Single, Single, Single, Single)
Converts the given HCL color to the CMYK color space.
Public methodStatic memberFromHCV(Single, Single, Single)
Converts the given HCV color to the CMYK color space.
Public methodStatic memberFromHCV(Single, Single, Single, Single)
Converts the given HCV color to the CMYK color space.
Public methodStatic memberFromHCY(Single, Single, Single)
Converts the given HCY color to the CMYK color space.
Public methodStatic memberFromHCY(Single, Single, Single, Single)
Converts the given HCY color to the CMYK color space.
Public methodStatic memberFromHSL(Single, Single, Single)
Converts the given HSL color to the CMYK color space.
Public methodStatic memberFromHSL(Single, Single, Single, Single)
Converts the given HSL color to the CMYK color space.
Public methodStatic memberFromHSV(Single, Single, Single)
Converts the given HSV color to the CMYK color space.
Public methodStatic memberFromHSV(Single, Single, Single, Single)
Converts the given HSV color to the CMYK color space.
Public methodStatic memberFromHSY(Single, Single, Single)
Converts the given HSY color to the CMYK color space.
Public methodStatic memberFromHSY(Single, Single, Single, Single)
Converts the given HSY color to the CMYK color space.
Public methodStatic memberFromRGB(Single, Single, Single)
Converts the given RGB color to the CMYK color space.
Public methodStatic memberFromRGB(Single, Single, Single, Single)
Converts the given RGB color to the CMYK color space.
Public methodGetCanonical
Gets the canonical representation of the color.
Public methodGetChroma
Gets the chroma of the color.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetHue
Gets the hue of the color.
Public methodGetIntensity
Gets the intensity of the color.
Public methodGetLightness
Gets the lightness of the color.
Public methodGetLuma
Gets the luma (apparent brightness) of the color.
Public methodGetNearestValid
Gets the nearest CMYK color that is also valid within the RGB color space.
Public methodGetValue
Gets the value of the color.
Public methodIsCanonical
Indicates if the color is canonical, or if there is a different representation of this color that is canonical.
Public methodIsValid
Indicates if the values for cyan, magenta, yellow, and key together represent a valid color within the RGB color space.
Public methodStatic memberLerp
Performs a linear interpolation between the two colors specified for each color channel independently.
Public methodStatic memberLerpUnclamped
Performs a linear interpolation between the two colors specified for each color channel independently.
Public methodOpaque
Gets the fully opaque variant of the current color.
Public methodToString
Converts the color to string representation, appropriate for diagnositic display.
(Overrides ValueTypeToString.)
Public methodToString(String)
Converts the color to string representation, appropriate for diagnositic display.
Public methodTranslucent
Gets a partially translucent variant of the current color.
Public methodTransparent
Gets the fully transparent variant of the current color.
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds the color channels of the two specified colors together.
Public operatorStatic memberDivision
Divides the color channels of the specified color by the specified value.
Public operatorStatic memberEquality
Checks if the two colors are equal to each other.
Public operatorStatic member(Vector3 to ColorCMYK)
Converts the specified Vector3 color to an CMYK color, with x as cyan, y as magenta, z as yellow, assuming a key of 0 and an opacity of 1.
Public operatorStatic member(Vector4 to ColorCMYK)
Converts the specified Vector4 color to an CMYK color, with x as cyan, y as magenta, z as yellow, and w as key, assuming an opacity of 1.
Public operatorStatic member(ColorCMY to ColorCMYK)
Converts the given CMY color to the CMYK color space.
Public operatorStatic member(ColorCMYK to Vector3)
Converts the specified color to a Vector3, with cyan as x, magenta as y, and yellow as z, while key and opacity are discarded.
Public operatorStatic member(ColorCMYK to Vector4)
Converts the specified color to a Vector4, with cyan as x, magenta as y, yellow as z, and key as w, while opacity is discarded.
Public operatorStatic member(ColorHCL to ColorCMYK)
Converts the given HCL color to the CMYK color space.
Public operatorStatic member(ColorHCV to ColorCMYK)
Converts the given HCV color to the CMYK color space.
Public operatorStatic member(ColorHCY to ColorCMYK)
Converts the given HCY color to the CMYK color space.
Public operatorStatic member(ColorHSL to ColorCMYK)
Converts the given HSL color to the CMYK color space.
Public operatorStatic member(ColorHSV to ColorCMYK)
Converts the given HSV color to the CMYK color space.
Public operatorStatic member(ColorHSY to ColorCMYK)
Converts the given HSY color to the CMYK color space.
Public operatorStatic memberGreaterThan
Checks if the first color is lexicographically ordered after the second color.
Public operatorStatic memberGreaterThanOrEqual
Checks if the first color is not lexicographically ordered before the second color.
Public operatorStatic member(Color to ColorCMYK)
Converts the given RGB color to the CMYK color space.
Public operatorStatic member(ColorCMYK to Color)
Converts the given CMYK color to the RGB color space.
Public operatorStatic memberInequality
Checks if the two colors are not equal to each other.
Public operatorStatic memberLessThan
Checks if the first color is lexicographically ordered before the second color.
Public operatorStatic memberLessThanOrEqual
Checks if the first color is not lexicographically ordered after the second color.
Public operatorStatic memberMultiply(Single, ColorCMYK)
Multiplies the color channels of the specified color by the specified value.
Public operatorStatic memberMultiply(ColorCMYK, ColorCMYK)
Multiplies the color channels of the two specified colors together.
Public operatorStatic memberMultiply(ColorCMYK, Single)
Multiplies the color channels of the specified color by the specified value.
Public operatorStatic memberSubtraction
Subtracts the color channels of the two specified colors together.
Top
Fields
  NameDescription
Public fielda
The color's alpha, or opacity, in the range [0, 1].
Public fieldc
The color's cyan channel, in the range [0, 1].
Public fieldStatic memberchannelCount
The number of color channels, including opacity, for colors in this color space.
Public fieldk
The color's key channel, in the range [0, 1].
Public fieldm
The color's magenta channel, in the range [0, 1].
Public fieldy
The color's yellow channel, in the range [0, 1].
Top
See Also