HexToRGBAFloat

From Onset Developer Wiki
Revision as of 15:24, 16 November 2019 by 28days (talk | contribs)
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(hex)
end

See also