init(red_x:green_x:blue_x:white_x:red_y:green_y:blue_y:white_y:)
Creates a structure that represents the specified chromaticity of primaries defining a color space.
Declaration
init(red_x: Float, green_x: Float, blue_x: Float, white_x: Float, red_y: Float, green_y: Float, blue_y: Float, white_y: Float)Parameters
- red_x:
The red
xvalue according to the CIE 1931 color space. - green_x:
The green
xvalue according to the CIE 1931 color space. - blue_x:
The blue
xvalue according to the CIE 1931 color space. - white_x:
The white point
xvalue according to the CIE 1931 color space. - red_y:
The red
yvalue according to the CIE 1931 color space. - green_y:
The green
yvalue according to the CIE 1931 color space. - blue_y:
The blue
yvalue according to the CIE 1931 color space. - white_y:
The white point
yvalue according to the CIE 1931 color space.
Return Value
A new RGB primaries structure.