/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/matrices.dm

TRANSLATE_MATRIXHelper macro for creating a matrix at the given offsets. Works at compile time.
COLOR_MATRIX_IDENTITYThe color matrix of an image which colors haven't been altered. Does nothing.
COLOR_MATRIX_INVERTColor inversion
COLOR_MATRIX_SEPIATONESepiatone
COLOR_MATRIX_GRAYSCALEGrayscale
COLOR_MATRIX_POLAROIDPolaroid colors
COLOR_MATRIX_BRGConverts reds to blue, green to red and blue to green.
COLOR_MATRIX_BLACK_WHITEBlack & White
COLOR_MATRIX_LIGHTNESSAdds/subtracts overall lightness 0 is identity, 1 makes everything white, -1 makes everything black
COLOR_MATRIX_CONTRASTChanges distance colors have from rgb(127,127,127) grey 1 is identity. 0 makes everything grey >1 blows out colors and greys

Define Details

COLOR_MATRIX_BLACK_WHITE

Black & White

COLOR_MATRIX_BRG

Converts reds to blue, green to red and blue to green.

COLOR_MATRIX_CONTRAST

Changes distance colors have from rgb(127,127,127) grey 1 is identity. 0 makes everything grey >1 blows out colors and greys

COLOR_MATRIX_GRAYSCALE

Grayscale

COLOR_MATRIX_IDENTITY

The color matrix of an image which colors haven't been altered. Does nothing.

COLOR_MATRIX_INVERT

Color inversion

COLOR_MATRIX_LIGHTNESS

Adds/subtracts overall lightness 0 is identity, 1 makes everything white, -1 makes everything black

COLOR_MATRIX_POLAROID

Polaroid colors

COLOR_MATRIX_SEPIATONE

Sepiatone

TRANSLATE_MATRIX

Helper macro for creating a matrix at the given offsets. Works at compile time.