LitDev Extension API
LDColours
![](images/IntellisenseObject.png)
Gets the Standard SmallBasic colours and other colour utilities.
GetBlue
![]() |
GetGreen
![]() |
GetHue
![]() |
GetLightness
![]() |
GetOpacity
![]() |
GetRed
![]() |
GetSaturation
![]() |
HSLtoRGB
![]() |
SetOpacity
![]() |
GetBlue(colour)
![](images/IntellisenseMethod.png)
Get the Blue component of a colour.
colour The colour to get the component from.
returns The blue component (0 to 255).
GetGreen(colour)
![](images/IntellisenseMethod.png)
Get the Green component of a colour.
colour The colour to get the component from.
returns The green component (0 to 255).
GetHue(colour)
![](images/IntellisenseMethod.png)
Get the Hue component of a colour.
colour The colour to get the component from.
returns The hue component (0 to 360).
GetLightness(colour)
![](images/IntellisenseMethod.png)
Get the Lightness component of a colour.
colour The colour to get the component from.
returns The lightness component (0 to 1).
GetOpacity(colour)
![](images/IntellisenseMethod.png)
Get the Opacity component of a colour.
colour The colour to get the component from.
returns The opacity component (0 to 255).
GetRed(colour)
![](images/IntellisenseMethod.png)
Get the Red component of a colour.
colour The colour to get the component from.
returns The red component (0 to 255).
GetSaturation(colour)
![](images/IntellisenseMethod.png)
Get the Saturation component of a colour.
colour The colour to get the component from.
returns The saturation component (0 to 1).
HSLtoRGB(H,S,L)
![](images/IntellisenseMethod.png)
Convert a Hue, Saturation, Lightness (HSL) color to a Red, Green, Blue (RGB) colour used by SmallBasic.
H Hue (0 to 360).
S Saturation (0 to 1).
L Lightness (0 to 1).
returns An RGB colour
SetOpacity(colour,opacity)
![](images/IntellisenseMethod.png)
Modify the opacity of a colour.
colour The colour to modify.
opacity The opacity (0 to 255).
returns The modified colour.