Game Graphics

Color Manipulation

Downloadcolor_mix(color1,color2)   Returns a 50/50 mixture of the two given colors. Downloadcolor_multiply(color1,color2)   Returns the given colors multiplied together. Downloadcolor_scale(color,scale)   Returns the given color with each component scaled by the given factor. Downloadcolor_to_wavelength(color)   Returns the approximate wavelength of the given color in nanometers. Downloadcolor_to_cmyk(color [, channel])   Returns a ds_list containing CMYK values of the given color or the value of a specific color channel. Downloadcolor_to_hex(color)   Returns the given color as a hexadecimal string in RRGGBB format. Downloadhex_to_color(hex)   Returns a color generated from the given RRGGBB format hexadecimal string. Downloadhex_to_rgb(hex,var_red,var_blue,var_green)   Sets local variables named in the given strings var_red, var_blue, and var_green to the color components of the given RRGGBB format hexadecimal string. Downloadmake_color_random()   Returns a randomly generated color. Downloadrgb_to_cmyk(r,g,b [,channel])   Returns a ds_list containing CMYK values of the given color or the value of a specific color channel. Downloadrgb_to_hex(r,g,b)   Returns the given RGB color as a string of hexadecimal digits in RRGGBB format. Downloadwavelength_to_hue(wavelength)   Returns the approximate hue of the given wavelength (nanometers).

Comments? Click to Comment