Garry's Mod Wiki

Garry's Mod Wiki

  table string.ToColor( string Inputstring )

Description

Fetches a Color type from a string.

Arguments

1 string Inputstring
The string to convert from.

Returns

1 table
The output Color

Example

Demonstrates the use of string.ToColor

PrintTable( string.ToColor( "255 0 255 125" ) )
Output:
r = 255 g = 0 b = 255 a = 125

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...