KvSetColor Function

Sets a set of color values of a KeyValues key.

void KvSetColor(Handle kv, const char[] key, int r, int g, int b, int a)

Parameters

Handle kv

KeyValues Handle.

const char[] key

Name of the key, or NULL_STRING.

int r

Red value.

int g

Green value.

int b

Blue value.

int a

Alpha value.

Errors

Invalid Handle.