Garry's Mod Wiki

Garry's Mod Wiki

  string Color:ToHex( boolean = false )

Description

Converts a Color to its hexadecimal representation.

Arguments

1 boolean = false
Whether to forcibly omit the alpha channel from the output.

Returns

1 string
The hexadecimal representation of the color. (#RRGGBBAA)

If the alpha channel is 255, it will be omitted from the output (#RRGGBB)

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 four times a day. Edits and history are not available.

Last Parsed: Loading...