VN_fnc_rgba100toHex
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...")
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Heyoxe |
|
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"