|
Search
|
These functions are declared in the following header file. Link with allegro_color. al_color_cmykReturn an ALLEGRO_COLOR structure from CMYK values (cyan, magenta, yellow, black). See also: al_color_cmyk_to_rgb, al_color_rgb_to_cmyk al_color_cmyk_to_rgbConvert CMYK values to RGB values. See also: al_color_cmyk, al_color_rgb_to_cmyk al_color_hslReturn an ALLEGRO_COLOR structure from HSL (hue, saturation, lightness) values. See also: al_color_hsl_to_rgb, al_color_hsv al_color_hsl_to_rgbConvert values in HSL color model to RGB color model. Parameters:
See also: al_color_rgb_to_hsl, al_color_hsl, al_color_hsv_to_rgb al_color_hsvReturn an ALLEGRO_COLOR structure from HSV (hue, saturation, value) values. See also: al_color_hsv_to_rgb, al_color_hsl al_color_hsv_to_rgbConvert values in HSV color model to RGB color model. Parameters:
See also: al_color_rgb_to_hsv, al_color_hsv, al_color_hsl_to_rgb al_color_htmlInterprets an HTML styled hex number (e.g. #00faff) as a color. Components that are malformed are set to 0. See also: al_color_html_to_rgb, al_color_rgb_to_html al_color_html_to_rgbInterprets an HTML styled hex number (e.g. #00faff) as a color. Components that are malformed are set to 0. See also: al_color_html, al_color_rgb_to_html al_color_rgb_to_htmlCreate an HTML-style string representation of an ALLEGRO_COLOR, e.g. #00faff. Parameters:
Example: Now html will contain "#ff0000". See also: al_color_html, al_color_html_to_rgb al_color_nameReturn an ALLEGRO_COLOR with the given name. If the color is not found then black is returned. See al_color_name_to_rgb for the list of names. al_color_name_to_rgbParameters:
The recognized names are:
They are taken from Returns: true if a name from the list above was passed, else false. See also: al_color_name al_color_rgb_to_cmykEach RGB color can be represented in CMYK with a K component of 0 with the following formula: This function will instead find the representation with the maximal value for K and minimal color components. See also: al_color_cmyk, al_color_cmyk_to_rgb al_color_rgb_to_hslGiven an RGB triplet with components in the range 0..1, return the hue in degrees from 0..360 and saturation and lightness in the range 0..1. See also: al_color_hsl_to_rgb, al_color_hsl al_color_rgb_to_hsvGiven an RGB triplet with components in the range 0..1, return the hue in degrees from 0..360 and saturation and value in the range 0..1. See also: al_color_hsv_to_rgb, al_color_hsv al_color_rgb_to_nameGiven an RGB triplet with components in the range 0..1, find a color name describing it approximately. See also: al_color_name_to_rgb, al_color_name al_color_rgb_to_yuvConvert RGB values to YUV color space. See also: al_color_yuv, al_color_yuv_to_rgb al_color_yuvReturn an ALLEGRO_COLOR structure from YUV values. See also: al_color_yuv_to_rgb, al_color_rgb_to_yuv al_color_yuv_to_rgbConvert YUV color values to RGB color space. See also: al_color_yuv, al_color_rgb_to_yuv al_get_allegro_color_versionReturns the (compiled) version of the addon, in the same format as al_get_allegro_version. |
Last updated: 2010-05-26 10:53:37 UTC