Table of Contents

Struct HSV

Namespace
PAC.Colour

Represents a colour in HSV form.

public struct HSV
Inherited Members

Constructors

HSV(Color)

public HSV(Color rgb)

Parameters

rgb Color

HSV(float, float, float)

public HSV(float hue, float saturation, float value)

Parameters

hue float
saturation float
value float

HSV(float, float, float, float)

public HSV(float hue, float saturation, float value, float alpha)

Parameters

hue float
saturation float
value float
alpha float

Properties

a

Alpha.

public float a { readonly get; set; }

Property Value

float

color

public Color color { get; }

Property Value

Color

h

Hue.

public float h { readonly get; set; }

Property Value

float

hsl

public HSL hsl { get; }

Property Value

HSL

s

Saturation.

public float s { readonly get; set; }

Property Value

float

v

Value.

public float v { readonly get; set; }

Property Value

float

Methods

ToColor()

public Color ToColor()

Returns

Color

ToHSL()

public HSL ToHSL()

Returns

HSL

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

ToString(int)

public string ToString(int decimalPlaces)

Parameters

decimalPlaces int

Returns

string

Operators

explicit operator Color(HSV)

public static explicit operator Color(HSV hsv)

Parameters

hsv HSV

Returns

Color

explicit operator HSL(HSV)

public static explicit operator HSL(HSV hsv)

Parameters

hsv HSV

Returns

HSL