++ed by:
ALEXBYK ARISTOTLE TOMITA JMATES EMAZEP

32 PAUSE users
17 non-PAUSE users.

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