Function Reference


_ColorSetRGB

Returns the RGB color.

#include <Color.au3>
_ColorSetRGB($aColor)

Parameters

$aColor an array of values in the range 0-255:
[0] Red component color
[1] Green component color
[2] Blue component color

Return Value

Success: returns the RGB color to work with 0x00RRGGBB.
Failure: set @error
@error: 1 invalid array
2 invalid color value

Remarks

@extended is preserved.

Related

_ColorGetRGB

Example


#include <Color.au3>

Local $aColor[3] = [0x80, 0x90, 0xff]

Local $nColor = _ColorSetRGB($aColor)
MsgBox(4096, "AutoIt", " Red=" & Hex($aColor[0], 2) & " Green=" & Hex($aColor[1], 2) & " Blue=" & Hex($aColor[2], 2) & @CRLF & _
        "Color=" & Hex($nColor))