HexToRGBAFloat

From Onset Developer Wiki
Revision as of 15:22, 16 November 2019 by 28days (talk | contribs) (Created page with "{{Info|Function|Server & Client|1.0}} {{FuncDescription|Converts Hex color value into RGBA float}} {{FuncSyntax|HexToRGBAFloat(HexColor)}} {{FuncParameters}} {{FuncParam|He...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
HexToRGBAFloat

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

Description

Converts Hex color value into RGBA float

Syntax

HexToRGBAFloat(HexColor)

Parameters

  • HexColor
    Hex color in float format.

Return Value

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

Example

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

See also