code/__HELPERS/sanitize_values.dm
/proc/sanitize_hexcolor | Sanitizes a hexadecimal color. Always outputs lowercase. |
---|---|
/proc/sanitize_ooccolor | Makes sure the input color is text with a # at the start followed by 6 hexadecimal characters. Examples: "#ff1234", "#A38321", COLOR_GREEN_GRAY |