|
|
|
@ -12,6 +12,7 @@ namespace Avalonia.Media |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Defines a color using the hue/saturation/value (HSV) model.
|
|
|
|
/// This uses a cylindrical-coordinate representation of a color.
|
|
|
|
/// </summary>
|
|
|
|
#if !BUILDTASK
|
|
|
|
public |
|
|
|
@ -98,24 +99,53 @@ namespace Avalonia.Media |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the Alpha (transparency) component in the range from 0..1.
|
|
|
|
/// Gets the Alpha (transparency) component in the range from 0..1 (percentage).
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
/// <list type="bullet">
|
|
|
|
/// <item>0 is fully transparent.</item>
|
|
|
|
/// <item>1 is fully opaque.</item>
|
|
|
|
/// </list>
|
|
|
|
/// </remarks>
|
|
|
|
public double A { get; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the Hue component in the range from 0..360.
|
|
|
|
/// Gets the Hue component in the range from 0..360 (degrees).
|
|
|
|
/// This is the color's location, in degrees, on a color wheel/circle from 0 to 360.
|
|
|
|
/// Note that 360 is equivalent to 0 and will be adjusted automatically.
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
/// <list type="bullet">
|
|
|
|
/// <item>0/360 degrees is Red.</item>
|
|
|
|
/// <item>60 degrees is Yellow.</item>
|
|
|
|
/// <item>120 degrees is Green.</item>
|
|
|
|
/// <item>180 degrees is Cyan.</item>
|
|
|
|
/// <item>240 degrees is Blue.</item>
|
|
|
|
/// <item>300 degrees is Magenta.</item>
|
|
|
|
/// </list>
|
|
|
|
/// </remarks>
|
|
|
|
public double H { get; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the Saturation component in the range from 0..1.
|
|
|
|
/// Gets the Saturation component in the range from 0..1 (percentage).
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
/// <list type="bullet">
|
|
|
|
/// <item>0 is a shade of gray (no color).</item>
|
|
|
|
/// <item>1 is the full color.</item>
|
|
|
|
/// </list>
|
|
|
|
/// </remarks>
|
|
|
|
public double S { get; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the Value component in the range from 0..1.
|
|
|
|
/// Gets the Value (or Brightness/Intensity) component in the range from 0..1 (percentage).
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
/// <list type="bullet">
|
|
|
|
/// <item>0 is fully black and shows no color.</item>
|
|
|
|
/// <item>1 is the brightest and shows full color.</item>
|
|
|
|
/// </list>
|
|
|
|
/// </remarks>
|
|
|
|
public double V { get; } |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
|