space_from_chromaticities
Description:
public unowned Object? space_from_chromaticities (string? name, double wx, double wy, double rx, double ry, double gx, double gy, double bx, double by, Object trc_red, Object? trc_green, Object? trc_blue, SpaceFlags flags)
Creates a new babl-space/ RGB matrix color space definition with the specified CIE xy(Y) values for white point: wx, wy and primary chromaticities: rx,ry,gx,gy,bx,by and TRCs to be used.
After registering a new babl-space it can be used with space passing its name;
Internally this does the math to derive the RGBXYZ matrix as used in an ICC profile.
Parameters:
name |
The name for the color space |
wx |
The X-coordinate of the color space's white point |
wy |
The Y-coordinate of the color space's white point |
rx |
The X-coordinate of the red primary |
ry |
The Y-coordinate of the red primary |
gx |
The X-coordinate of the green primary |
gy |
The Y-coordinate of the green primary |
bx |
The X-coordinate of the blue primary |
by |
The Y-coordinate of the blue primary |
trc_red |
The red component of the TRC. |
trc_green |
The green component of the TRC (can be null if it's the same as |
trc_blue |
The blue component of the TRC (can be null if it's the same as |
flags |
The SpaceFlags |