C# Класс LitDev.LDColours

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetBlue ( Primitive colour ) : Primitive

Get the Blue component of a colour.

GetGreen ( Primitive colour ) : Primitive

Get the Green component of a colour.

GetHue ( Primitive colour ) : Primitive

Get the Hue component of a colour.

GetLightness ( Primitive colour ) : Primitive

Get the Lightness component of a colour.

GetOpacity ( Primitive colour ) : Primitive

Get the Opacity component of a colour.

GetRed ( Primitive colour ) : Primitive

Get the Red component of a colour.

GetSaturation ( Primitive colour ) : Primitive

Get the Saturation component of a colour.

HSL2RGB ( double H, double S, double L ) : double[]
HSLtoRGB ( Primitive H, Primitive S, Primitive L ) : Primitive

Convert a Hue, Saturation, Lightness (HSL) color to a Red, Green, Blue (RGB) colour used by SmallBasic.

RGB2HSL ( double R, double G, double B ) : double[]
SetOpacity ( Primitive colour, Primitive opacity ) : Primitive

Modify the opacity of a colour.

Приватные методы

Метод Описание
GetPixel ( Primitive x, Primitive y ) : Primitive

Описание методов

GetBlue() публичный статический Метод

Get the Blue component of a colour.
public static GetBlue ( Primitive colour ) : Primitive
colour Primitive The colour to get the component from.
Результат Primitive

GetGreen() публичный статический Метод

Get the Green component of a colour.
public static GetGreen ( Primitive colour ) : Primitive
colour Primitive The colour to get the component from.
Результат Primitive

GetHue() публичный статический Метод

Get the Hue component of a colour.
public static GetHue ( Primitive colour ) : Primitive
colour Primitive The colour to get the component from.
Результат Primitive

GetLightness() публичный статический Метод

Get the Lightness component of a colour.
public static GetLightness ( Primitive colour ) : Primitive
colour Primitive The colour to get the component from.
Результат Primitive

GetOpacity() публичный статический Метод

Get the Opacity component of a colour.
public static GetOpacity ( Primitive colour ) : Primitive
colour Primitive The colour to get the component from.
Результат Primitive

GetRed() публичный статический Метод

Get the Red component of a colour.
public static GetRed ( Primitive colour ) : Primitive
colour Primitive The colour to get the component from.
Результат Primitive

GetSaturation() публичный статический Метод

Get the Saturation component of a colour.
public static GetSaturation ( Primitive colour ) : Primitive
colour Primitive The colour to get the component from.
Результат Primitive

HSL2RGB() публичный статический Метод

public static HSL2RGB ( double H, double S, double L ) : double[]
H double
S double
L double
Результат double[]

HSLtoRGB() публичный статический Метод

Convert a Hue, Saturation, Lightness (HSL) color to a Red, Green, Blue (RGB) colour used by SmallBasic.
public static HSLtoRGB ( Primitive H, Primitive S, Primitive L ) : Primitive
H Primitive Hue (0 to 360).
S Primitive Saturation (0 to 1).
L Primitive Lightness (0 to 1).
Результат Primitive

RGB2HSL() публичный статический Метод

public static RGB2HSL ( double R, double G, double B ) : double[]
R double
G double
B double
Результат double[]

SetOpacity() публичный статический Метод

Modify the opacity of a colour.
public static SetOpacity ( Primitive colour, Primitive opacity ) : Primitive
colour Primitive The colour to modify.
opacity Primitive The opacity (0 to 255).
Результат Primitive