LitDev Extension API

GW LD3DView LDArray LDBits LDBlueTooth
LDCall LDChart LDClient LDClipboard LDColours
LDCommPort LDController LDControls LDCursors LDDataBase
LDDateTime LDDebug LDDialogs LDDictionary LDEffect
LDEmail LDEncryption LDEvents LDFastArray LDFastShapes
LDFigures LDFile LDFinances LDFocus LDftp
LDGeography LDGraph LDGraphicsWindow LDHashTable LDHID
LDIcon LDImage LDInline LDIOWarrior LDList
LDLogic LDMath LDMathX LDMatrix LDMusic
LDNetwork LDPhysics LDProcess LDQueue LDRegex
LDResources LDScrollBars LDSearch LDServer LDSettings
LDShapes LDShell LDSort LDSound LDSpeech
LDStatistics LDStopwatch LDText LDTextWindow LDTimer
LDTranslate LDUnits LDUtilities LDVector LDWaveForm
LDWebCam LDWindows LDxml LDZip TW

LDColours
Gets the Standard SmallBasic colours and other colour utilities.

GetBlue GetGreen GetHue
GetLightness GetOpacity GetRed
GetSaturation HSLtoRGB SetOpacity

GetBlue(colour)
Get the Blue component of a colour.
colour The colour to get the component from.
returns The blue component (0 to 255).

GetGreen(colour)
Get the Green component of a colour.
colour The colour to get the component from.
returns The green component (0 to 255).

GetHue(colour)
Get the Hue component of a colour.
colour The colour to get the component from.
returns The hue component (0 to 360).

GetLightness(colour)
Get the Lightness component of a colour.
colour The colour to get the component from.
returns The lightness component (0 to 1).

GetOpacity(colour)
Get the Opacity component of a colour.
colour The colour to get the component from.
returns The opacity component (0 to 255).

GetRed(colour)
Get the Red component of a colour.
colour The colour to get the component from.
returns The red component (0 to 255).

GetSaturation(colour)
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)
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)
Modify the opacity of a colour.
colour The colour to modify.
opacity The opacity (0 to 255).
returns The modified colour.