++ed by:
ALEXBYK ANTIPASTA AWNCORP EGOR EMAZEP

25 PAUSE user(s)
13 non-PAUSE user(s).

Tony Cook

NAME

color.c - color manipulation functions

SYNOPSIS

  i_fcolor color;
  i_rgb_to_hsvf(&color);
  i_hsv_to_rgbf(&color);

DESCRIPTION

A collection of utility functions for converting between color spaces.

i_rgb2hsvf(&color)

Converts the first 3 channels of color into hue, saturation and value.

Each value is scaled into the range 0 to 1.0.

i_rgb2hsv(&color)

Converts the first 3 channels of color into hue, saturation and value.

Each value is scaled into the range 0 to 255.

i_hsv_to_rgbf(&color)

Convert a HSV value to an RGB value, each value ranges from 0 to 1.

i_hsv_to_rgb(&color)

Convert a HSV value to an RGB value, each value ranges from 0 to 1.

AUTHOR

Tony Cook <tony@develop-help.com>

SEE ALSO

Imager




Hosting generously
sponsored by Bytemark