AxoColorHsbFromLinearRgb Method |
Converts the linear Rgb components to the AHSB model, with Hue [0, 1], Saturation [0, 1] and Brightness [0, 1].
Namespace: Altaxo.DrawingAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static (float hue, float saturation, float brightness) HsbFromLinearRgb(
float r,
float g,
float b
)
Parameters
- r Single
- The red component in linear RGB space.
- g Single
- The green component in linear RGB space.
- b Single
- The blue component in linear RGB space.
Return Value
ValueTupleSingle,
Single,
SingleThe hue, saturation, and brightness components, all in the range [0, 1].
Exceptions| Exception | Condition |
|---|
| InvalidProgramException | Thrown when the RGB components cannot be classified into a valid hue sector. |
See Also