Yogstation 13 - Modules - Types

code/__HELPERS/sanitize_values.dm

/proc/sanitize_hexcolor Sanitize_Hexcolor takes in a color in hexcode as a string, be it shorthand hex as 3 characters, or full-sized 6 digit hex, with or without a leading # you can pass it a full hexcode with leading #, such as "#FFFFFF", and with the default arguments you will get exactly that color back, because it accounts for leading # signs and ignores them, then later in the function will either readd one, or won't depending on what you want.