diff options
Diffstat (limited to '')
-rw-r--r-- | libred.h | 30 | ||||
-rw-r--r-- | libred.h.0 | 21 |
2 files changed, 31 insertions, 20 deletions
@@ -250,21 +250,6 @@ int libred_get_colour(long int, double *, double *, double *); int libred_get_colour_xy(long int, double *, double *); /** - * Calculate the colour temperature from its CIE xy values - * - * @param x The CIE x value for the colour temperature - * @param y The CIE y value for the colour temperature - * @param x_error Output parameter for the absolute error in - * the CIE x value of the returned colour - * temperature; may be `NULL` - * @param y_error Output parameter for the absolute error in - * the CIE y value of the returned colour - * temperature; may be `NULL` - * @return The closest matching colour temperature - */ -double libred_get_temperature_xy(double, double, double *, double *); - -/** * Calculate the colour temperature from its [0, 1] sRGB values * * @param r The sRGB “red” value for the colour temperature @@ -288,6 +273,21 @@ double libred_get_temperature_xy(double, double, double *, double *); */ double libred_get_temperature(double, double, double, double *, double *, double *, double *); +/** + * Calculate the colour temperature from its CIE xy values + * + * @param x The CIE x value for the colour temperature + * @param y The CIE y value for the colour temperature + * @param x_error Output parameter for the absolute error in + * the CIE x value of the returned colour + * temperature; may be `NULL` + * @param y_error Output parameter for the absolute error in + * the CIE y value of the returned colour + * temperature; may be `NULL` + * @return The closest matching colour temperature + */ +double libred_get_temperature_xy(double, double, double *, double *); + #endif @@ -8,7 +8,8 @@ libred.h \- Solar elevation and blackbody colour calculation .fi .PP Link with -.IR -lred . +.I -lred +.IR -lm . .SH DESCRIPTION The .I <libred.h> @@ -116,11 +117,21 @@ It is night only if the Sun's apparent elevation is negative. This header defines the following functions: .TP * -.BR libred_solar_elevation (3) +.BR libred_get_colour (3) .TP * -.BR libred_get_colour (3) +.BR libred_get_colour_xy (3) +.TP +* +.BR libred_get_temperature (3) +.TP +* +.BR libred_get_temperature (3) +.TP +* +.BR libred_solar_elevation (3) .SH SEE ALSO .BR libred (7), -.BR libred_solar_elevation (3), -.BR libred_get_colour (3) +.BR libred_get_colour (3), +.BR libred_get_temperature (3), +.BR libred_solar_elevation (3) |