Garry's Mod Wiki

string.FromColor

  string string.FromColor( table color )

Description

Creates a string from a Color variable.

Arguments

1 table color
The color to put in the string.

Returns

1 string
Output

Example

Demonstrates the use of string.FromColor

MsgN(string.FromColor(Color(255, 0, 255, 125)))
Output: "255 0 255 125"