code/__HELPERS/type2type.dm 
| /proc/color2R | Returns an integer value for R of R/G/B given a hex color input. |
|---|---|
| /proc/color2G | Returns an integer value for G of R/G/B given a hex color input. |
| /proc/color2B | Returns an integer value for B of R/G/B given a hex color input. |
| /proc/type2top | Returns a string the last bit of a type, without the preceeding '/' |
| /proc/dir2text | Turns a direction into eng text |
| /proc/dir2rustext | Turns a direction into ru text |
| /proc/text2dir | Turns text into proper directions |
| /proc/text2dir_rus | Turns text into proper directions |
| angle2dir | Converts an angle (degrees) into an ss13 direction |
| /proc/dir2angle | returns the north-zero clockwise angle in degrees, given a direction |
| /proc/angle2text | Returns the angle in english |
| /proc/blendMode2iconMode | Converts a blend_mode constant to one acceptable to icon.Blend() |
| /proc/rights2text | Converts a rights bitfield into a string |
| /proc/rgb2hsl | colour formats |
| /proc/heat2color | heat2color functions. Adapted from: http://www.tannerhelland.com/4435/convert-temperature-rgb-algorithm-code |
| /proc/text2matrix | Argument: Give this a space-separated string consisting of 6 numbers. Returns null if you don't |
| /proc/string2listofvars | This 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 |
| /proc/get_channel_name | Returns the clean name of an audio channel. |
| /proc/get_clockwise_dir | Get the dir to the RIGHT of dir if they were on a clock NORTH --> NORTHEAST |
| /proc/get_anticlockwise_dir | Get the dir to the LEFT of dir if they were on a clock NORTH --> NORTHWEST |
| /proc/dir2offset | Returns a list(x, y), being the change in position required to step in the passed in direction |
| /proc/color_hex2color_matrix |
Define Details
angle2dir 
Converts an angle (degrees) into an ss13 direction