Méthode | Description | |
---|---|---|
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.
|
Méthode | Description | |
---|---|---|
GetPixel ( Primitive x, Primitive y ) : Primitive |
public static GetBlue ( Primitive colour ) : Primitive | ||
colour | Primitive | The colour to get the component from. |
Résultat | Primitive |
public static GetGreen ( Primitive colour ) : Primitive | ||
colour | Primitive | The colour to get the component from. |
Résultat | Primitive |
public static GetHue ( Primitive colour ) : Primitive | ||
colour | Primitive | The colour to get the component from. |
Résultat | Primitive |
public static GetLightness ( Primitive colour ) : Primitive | ||
colour | Primitive | The colour to get the component from. |
Résultat | Primitive |
public static GetOpacity ( Primitive colour ) : Primitive | ||
colour | Primitive | The colour to get the component from. |
Résultat | Primitive |
public static GetRed ( Primitive colour ) : Primitive | ||
colour | Primitive | The colour to get the component from. |
Résultat | Primitive |
public static GetSaturation ( Primitive colour ) : Primitive | ||
colour | Primitive | The colour to get the component from. |
Résultat | Primitive |
public static HSL2RGB ( double H, double S, double L ) : double[] | ||
H | double | |
S | double | |
L | double | |
Résultat | double[] |
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). |
Résultat | Primitive |
public static RGB2HSL ( double R, double G, double B ) : double[] | ||
R | double | |
G | double | |
B | double | |
Résultat | double[] |
public static SetOpacity ( Primitive colour, Primitive opacity ) : Primitive | ||
colour | Primitive | The colour to modify. |
opacity | Primitive | The opacity (0 to 255). |
Résultat | Primitive |