HexToRGBA

From Onset Developer Wiki
Revision as of 17:36, 16 July 2020 by BlueMountains (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
HexToRGBA

Type: Function
Context: Server & Client
Introduced: v1.0

Description

Converts an integer color value to the RGB format.

Syntax

HexToRGBA(HexColor)

Parameters

  • HexColor
    Color in integer format

Return Value

  • R, G, B, A values between 0 and 255

Example

function convertColor(hex)
    return r, g, b, a = HexToRGBA(hex)
end

See also