Const
Brettel/ViƩnot-derived simulation matrices, the same values widely used by colourblindness simulators - a 5x4 (20-value) row-major RGBA matrix, Pixi's own ColorMatrixFilter format. Exported so the matrix data itself can be tested without constructing a ColorMatrixFilter, which (like BitmapText) needs a real WebGL context even to construct.
ColorMatrixFilter
BitmapText
import { COLOR_BLINDNESS_MATRICES } from '@datamoc/mw_games/two-d/render';console.log(COLOR_BLINDNESS_MATRICES.deuteranopia.length); // 20 Copy
import { COLOR_BLINDNESS_MATRICES } from '@datamoc/mw_games/two-d/render';console.log(COLOR_BLINDNESS_MATRICES.deuteranopia.length); // 20
Brettel/ViƩnot-derived simulation matrices, the same values widely used by colourblindness simulators - a 5x4 (20-value) row-major RGBA matrix, Pixi's own
ColorMatrixFilterformat. Exported so the matrix data itself can be tested without constructing aColorMatrixFilter, which (likeBitmapText) needs a real WebGL context even to construct.