Space Station 13 - Modules - Types

code/__HELPERS/type2type.dm

/proc/color2RReturns an integer value for R of R/G/B given a hex color input.
/proc/color2GReturns an integer value for G of R/G/B given a hex color input.
/proc/color2BReturns an integer value for B of R/G/B given a hex color input.
/proc/type2topReturns a string the last bit of a type, without the preceeding '/'
/proc/text2dirTurns text into proper directions
/proc/text2dir_rusTurns text into proper directions
/proc/dir2anglereturns the north-zero clockwise angle in degrees, given a direction
/proc/angle2textReturns the angle in english
/proc/blendMode2iconModeConverts a blend_mode constant to one acceptable to icon.Blend()
/proc/rights2textConverts a rights bitfield into a string
/proc/rgb2hslcolour formats
/proc/heat2colorheat2color functions. Adapted from: http://www.tannerhelland.com/4435/convert-temperature-rgb-algorithm-code
/proc/text2matrixArgument: Give this a space-separated string consisting of 6 numbers. Returns null if you don't
/proc/string2listofvarsThis is a weird one: It returns a list of all var names found in the string These vars must be in the [var_name] format It's only a proc because it's used in more than one place