code/_helpers/matrices.dm
/datum/decompose_matrix | Datum which stores information about a matrix decomposed with decompose(). |
---|---|
/proc/color_matrix_identity | Returns the matrix identity |
/proc/color_matrix_lightness | Adds/subtracts overall lightness |
/proc/color_matrix_saturation | Changes distance hues have from grey while maintaining the overall lightness. Greys are unaffected. |
/proc/color_matrix_contrast | Changes distance colors have from rgb(127,127,127) grey |
/proc/color_matrix_rotate_hue | Moves all colors angle degrees around the color wheel while maintaining intensity of the color and not affecting greys |
/proc/color_matrix_rotate_x | Rotates around the red axis |
/proc/color_matrix_rotate_y | Rotates around the green axis |
/proc/color_matrix_rotate_z | Rotates around the blue axis |
/proc/color_matrix_add | Returns a matrix addition of A with B |
/proc/color_matrix_multiply | Returns a matrix multiplication of A with B |
/proc/color_to_full_rgba_matrix | Converts RGB shorthands into RGBA matrices complete of constants rows (ergo a 20 keys list in byond). |