HexToRGBAFloat: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server & Client|1.0}} {{FuncDescription|Converts Hex color value into RGBA float}} {{FuncSyntax|HexToRGBAFloat(HexColor)}} {{FuncParameters}} {{FuncParam|He..." |
No edit summary |
||
Line 13: | Line 13: | ||
<syntaxhighlight lang="Lua"> | <syntaxhighlight lang="Lua"> | ||
function convertColor(hex) | function convertColor(hex) | ||
return r, g, b, a = HexToRGBAFloat( | return r, g, b, a = HexToRGBAFloat(hex) | ||
end | end | ||
</syntaxhighlight> | </syntaxhighlight> |