garrynewman/garrysmod — pull request #782 by Acecool (2014-08-09 09:03:54+00:00)
Title: Added several Color Meta-Table functions..

function COLOR:ToCMYK( ) Returns c, m, y, k as 4 vars 0-1 each based on color value.
function COLOR:FromCMYK( c, m, y, k ) Returns current Color after change; Changes current Color RGB to match that of entered CMYK; Loss of precision, Alpha isn't used in CMYK
function COLOR:ToHex( ) Returns 6 character string ( excludes # ) of Color Hex Code ( useful for DHTML/HTML Panels )
function COLOR:FromHex( hex ) Returns current Color after change; Changes current Color RGB to match that of entered Hex code; Loss of precision, Alpha isn't used in Hex ( Various docs state Alpha is first 2 with "a" appended to end, or just first 2 chars, or last 2 making the string 8 or 9 chars.. Excluded here )

Globals added:
function HexToColor( hex ) Global which creates Color object and returns Color after changed via Hex.
function CMYKToColor( c, m, y, k ) Global which creates Color object and returns Color after changed via CMYK values.

Removed all trailing spaces in file.