a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Other:
 colorwheel.gadget
  ConvertHSBToRGB
  ConvertRGBToHSB
  colorwheel.gadget
Include
GuruMeditation
Docs » Autodocs » colorwheel.gadget » ConvertRGBToHSB

NAME

	ConvertRGBToHSB -- convert from an RGB color space to an HSB color
space. (V39)

SYNOPSIS

	ConvertRGBToHSB(rgb, hsb);
A0 A1
VOID ConvertRGBToHSB(struct ColorWheelRGB *, struct ColorWheelHSB *);

FUNCTION

	Converts a color from an RGB representation to an HSB representation.

INPUTS

	rgb - filled-in ColorWheelRGB structure containing the values to
convert
hsb - structure to receive the converted values

BUGS

	Even though all communication with the color wheel is done using full
32-bit color components, color calculations are currently done using
16-bit math, which can cause certain rounding errors to appear.

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Crystal

DJ
TSL
CSL
ANA

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se