GetColour
From SwinGame
GetColour routines are used to obtain the colour data from RGB or RGBA components. It has three to four parameters with the fourth parameter Alpha being optional. From these parameters GetColour returns a Colour.
Where is it: SGSDK_CORE
Contents |
Languages
Pascal
Added in Version 1.1
function GetColor(red, green, blue : Byte) : Colour;
function GetColor(red, green, blue, alpha: Byte) : Colour;
In version 1.0
function GetColour(red, green, blue : Byte) : Colour;
function GetColour(red, green, blue, alpha: Byte) : Colour;
C#
In C# you use the .NET Color structure.
public Color Core.GetColor(Byte red, Byte, green, Byte blue);
public Color Core.GetColor(Byte red, Byte, green, Byte blue, Byte alpha);
Visual Basic .NET
In Visual Basic .NET you use the .NET Color structure.
Public Function Core.GetColor(ByVal red As Byte, ByVal green As Byte, ByVal blue As Byte) As Color
Public Function Core.GetColor(ByVal red As Byte, ByVal green As Byte, ByVal blue As Byte, ByVal alpha As Byte) As Color
Visual Basic 6
Public Function Core.GetColour(ByVal red As Byte, ByVal green As Byte, ByVal blue As Byte) As Long
Public Function Core.GetColour_Alpha(ByVal red As Byte, ByVal green As Byte, ByVal blue As Byte, ByVal alpha As Byte) As Long

