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.3179.0 (4.8.3179.0)
Syntax
C#
public static (float hue, float saturation, float brightness) HsbFromLinearRgb(
	float r,
	float g,
	float b
)

Parameters

r  Single

[Missing <param name="r"/> documentation for "M:Altaxo.Drawing.AxoColor.HsbFromLinearRgb(System.Single,System.Single,System.Single)"]

g  Single

[Missing <param name="g"/> documentation for "M:Altaxo.Drawing.AxoColor.HsbFromLinearRgb(System.Single,System.Single,System.Single)"]

b  Single

[Missing <param name="b"/> documentation for "M:Altaxo.Drawing.AxoColor.HsbFromLinearRgb(System.Single,System.Single,System.Single)"]

Return Value

ValueTupleSingle, Single, Single
The hue, saturation and brightness components (all in the range [0, 1].
Exceptions
ExceptionCondition
InvalidProgramException
See Also