Build the Pixi 5x4 colour-matrix for a Wesnoth CS(r,g,b) shift.
CS(r,g,b)
import { colorShiftMatrix } from '@datamoc/mw_games/two-d/render';const matrix = colorShiftMatrix(-20, 0, 30);console.log(matrix.length); // 20 Copy
import { colorShiftMatrix } from '@datamoc/mw_games/two-d/render';const matrix = colorShiftMatrix(-20, 0, 30);console.log(matrix.length); // 20
Build the Pixi 5x4 colour-matrix for a Wesnoth
CS(r,g,b)shift.