HexToRGBA: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
return r, g, b, a = HexToRGBA(hex) | return r, g, b, a = HexToRGBA(hex) | ||
end | end | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
__EDIT_ME__ | __EDIT_ME__ |
Revision as of 18:15, 13 November 2019
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
__EDIT_ME__