KeyValues.SetColor Method

Sets a set of color values of a KeyValues key.

void SetColor(const char[] key, int r, int g, int b, int a)

Parameters

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.