Click or drag to resize

AxoColorHsbFromLinearRgb Method

Converts the linear Rgb components to the AHSB model, with Hue [0, 1], Saturation [0, 1] and Brightness [0, 1].

Namespace: Altaxo.Drawing
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public 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, Single
The hue, saturation, and brightness components, all in the range [0, 1].
Exceptions
ExceptionCondition
InvalidProgramExceptionThrown when the RGB components cannot be classified into a valid hue sector.
See Also