![]() |
![]() |
![]() |
colord Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
CdColorLab; CdColorRGB; CdColorRGB8; CdColorXYZ; CdColorYxy; void cd_color_get_blackbody_rgb (guint temp
,CdColorRGB *result
); void cd_color_rgb8_to_rgb (const CdColorRGB8 *src
,CdColorRGB *dest
); void cd_color_rgb_copy (const CdColorRGB *src
,CdColorRGB *dest
); CdColorRGB * cd_color_rgb_dup (const CdColorRGB *src
); #define cd_color_rgb_free void cd_color_rgb_interpolate (const CdColorRGB *p1
,const CdColorRGB *p2
,gdouble index
,CdColorRGB *result
); #define cd_color_rgb_new void cd_color_rgb_set (CdColorRGB *dest
,gdouble R
,gdouble G
,gdouble B
); void cd_color_rgb_to_rgb8 (const CdColorRGB *src
,CdColorRGB8 *dest
); void cd_color_xyz_clear (CdColorXYZ *dest
); void cd_color_xyz_copy (const CdColorXYZ *src
,CdColorXYZ *dest
); CdColorXYZ * cd_color_xyz_dup (const CdColorXYZ *src
); #define cd_color_xyz_free #define cd_color_xyz_new void cd_color_xyz_set (CdColorXYZ *dest
,gdouble X
,gdouble Y
,gdouble Z
); void cd_color_xyz_to_yxy (const CdColorXYZ *src
,CdColorYxy *dest
); void cd_color_yxy_copy (const CdColorYxy *src
,CdColorYxy *dest
); CdColorYxy * cd_color_yxy_dup (const CdColorYxy *src
); #define cd_color_yxy_free #define cd_color_yxy_new void cd_color_yxy_set (CdColorYxy *dest
,gdouble Y
,gdouble x
,gdouble y
); void cd_color_yxy_to_xyz (const CdColorYxy *src
,CdColorXYZ *dest
);
void cd_color_get_blackbody_rgb (guint temp
,CdColorRGB *result
);
Get the blackbody color for a specific temperature.
|
the temperature in Kelvin |
|
the destination color |
Since 0.1.26
void cd_color_rgb8_to_rgb (const CdColorRGB8 *src
,CdColorRGB *dest
);
Convert from one color format to another.
|
the source color |
|
the destination color |
Since 0.1.27
void cd_color_rgb_copy (const CdColorRGB *src
,CdColorRGB *dest
);
Deep copies a color value.
|
the source color |
|
the destination color |
Since 0.1.27
void cd_color_rgb_interpolate (const CdColorRGB *p1
,const CdColorRGB *p2
,gdouble index
,CdColorRGB *result
);
Since 0.1.26
void cd_color_rgb_set (CdColorRGB *dest
,gdouble R
,gdouble G
,gdouble B
);
Initialises a color value.
|
the destination color |
|
component value |
|
component value |
|
component value |
Since 0.1.27
void cd_color_rgb_to_rgb8 (const CdColorRGB *src
,CdColorRGB8 *dest
);
Convert from one color format to another.
|
the source color |
|
the destination color |
Since 0.1.27
void cd_color_xyz_clear (CdColorXYZ *dest
);
Initialises a color value.
|
the destination color |
Since 0.1.27
void cd_color_xyz_copy (const CdColorXYZ *src
,CdColorXYZ *dest
);
Deep copies a color value.
|
the source color |
|
the destination color |
Since 0.1.27
void cd_color_xyz_set (CdColorXYZ *dest
,gdouble X
,gdouble Y
,gdouble Z
);
Initialises a color value.
|
the destination color |
|
component value |
|
component value |
|
component value |
Since 0.1.27
void cd_color_xyz_to_yxy (const CdColorXYZ *src
,CdColorYxy *dest
);
Convert from one color format to another.
|
the source color |
|
the destination color |
Since 0.1.27
void cd_color_yxy_copy (const CdColorYxy *src
,CdColorYxy *dest
);
Deep copies a color value.
|
the source color |
|
the destination color |
Since 0.1.27
void cd_color_yxy_set (CdColorYxy *dest
,gdouble Y
,gdouble x
,gdouble y
);
Initialises a color value.
|
the destination color |
|
component value |
|
component value |
|
component value |
Since 0.1.27
void cd_color_yxy_to_xyz (const CdColorYxy *src
,CdColorXYZ *dest
);
Convert from one color format to another.
|
the source color |
|
the destination color |
Since 0.1.27