code/__HELPERS/colors.dm

/proc/is_color_dark | Given a color in the format of "#RRGGBB", will return if the color is dark. |
---|---|
/proc/expand_three_digit_color | Given a 3 character color (no hash), converts it into #RRGGBB (with hash) |
/proc/random_colour | Returns a random color picked from a list, has 2 modes (0 and 1), mode 1 doesn't pick white, black or gray |
/proc/invert_HTML_colour | Inverts the colour of an HTML string |
/proc/flash_color | Flash a color on the client |