Skip to main content

ToRgb(Double, Double, Double, Double) Method

Converts the given HSVA color component values to their RGB color equivalent.

Definition

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

public static Color ToRgb(
double hue,
double saturation,
double value,
double alpha = 1
)

Parameters

  Double
The Hue component in the HSV color model in the range from 0..360.
  Double
The Saturation component in the HSV color model in the range from 0..1.
  Double
The Value component in the HSV color model in the range from 0..1.
  Double  (Optional)
The Alpha component in the range from 0..1.

Return Value

Color
A new RGB Color equivalent to the given HSVA values.

See Also

Reference

HsvColor Structure
ToRgb Overload
Avalonia.Media Namespace