VN_fnc_rgba100toHex

From Savage Game Design Wiki
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"