HexToRGBA: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
No edit summary
28days (talk | contribs)
No edit summary
Line 20: Line 20:
* [[RGB]]
* [[RGB]]
* [[RGBA]]
* [[RGBA]]
* [[HexToRGBAFloat]]

Revision as of 15:22, 16 November 2019

HexToRGBA

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

Description

Converts Hex color value into RGB format

Syntax

HexToRGBA(HexColor)

Parameters

  • HexColor
    Color in Hex 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