Skip to main content

FromHsl Method

Creates a new HslColor from individual color component values.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static HslColor FromHsl(
double h,
double s,
double l
)

Parameters

  Double
The Hue component in the range from 0..360.
  Double
The Saturation component in the range from 0..1.
  Double
The Lightness component in the range from 0..1.

Return Value

HslColor
A new HslColor built from the individual color component values.

Remarks

This exists for symmetry with the Color struct; however, the appropriate constructor should commonly be used instead.

See Also

Reference

HslColor Structure
Avalonia.Media Namespace