Space Station 13 - Nebula13 - Modules - Types

code/_helpers/matrices.dm

/datum/decompose_matrixDatum which stores information about a matrix decomposed with decompose().
/proc/color_matrix_identityReturns the matrix identity
/proc/color_matrix_lightnessAdds/subtracts overall lightness
/proc/color_matrix_saturationChanges distance hues have from grey while maintaining the overall lightness. Greys are unaffected.
/proc/color_matrix_contrastChanges distance colors have from rgb(127,127,127) grey
/proc/color_matrix_rotate_hueMoves all colors angle degrees around the color wheel while maintaining intensity of the color and not affecting greys
/proc/color_matrix_rotate_xRotates around the red axis
/proc/color_matrix_rotate_yRotates around the green axis
/proc/color_matrix_rotate_zRotates around the blue axis
/proc/color_matrix_addReturns a matrix addition of A with B
/proc/color_matrix_multiplyReturns a matrix multiplication of A with B
/proc/color_to_full_rgba_matrixConverts RGB shorthands into RGBA matrices complete of constants rows (ergo a 20 keys list in byond).