VN_fnc_rgba100toHex

From Savage Game Design Wiki
Revision as of 21:08, 4 May 2022 by Slow (talk | contribs) (Created page with "{{Function |v= 1.00 |author=Heyoxe |a= |e= |g1= mainFunctions |d= <pre>Converts an RGBA color to Hex</pre> |s= [_r,_g,_b,_a] call VN_fnc_rgba100toHex; |p1n=_r |p1t=N...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Heyoxe
Argument(s): n/a
Effect(s): unknown

Description

Converts an RGBA color to Hex

Syntax

Syntax
[_r,_g,_b,_a] call VN_fnc_rgba100toHex;
Parameters
_r: Number - Red value in % from 0 to 1
_g: Number - Green value in % from 0 to 1
_b: Number - Blue value in % from 0 to 1
_a: Number - Alpha value in % from 0 to 1
Return value
String - Hex color with "#" prefix

Examples

Example 1
[1,1,1,1] call vn_fnc_RGBA100toHex // "#FFFFFF"