SS1984 - Modules - Types

code/__HELPERS/matrices.dm

/datum/decompose_matrixDatum which stores information about a matrix decomposed with decompose().
/proc/color_matrix_saturationDocumenting a couple of potentially useful color matrices here to inspire ideas
/proc/color_matrix_rotate_hueMoves all colors angle degrees around the color wheel while maintaining intensity of the color and not affecting greys 0 is identity, 120 moves reds to greens, 240 moves reds to blues
/proc/color_matrix_addReturns a matrix addition of first_matrix with second_matrix
/proc/color_matrix_multiplyReturns a matrix multiplication of first_matrix with second_matrix
/proc/color_to_full_rgba_matrixConverts RGB shorthands into RGBA matrices complete of constants rows (ergo a 20 keys list in byond). if return_identity_on_fail is true, stack_trace is called instead of CRASH, and an identity is returned.