Home

Sprite.

sprite.js
let sprite = new Sprite({ el: 'canvas1', rows: 16, cols: 16 }); sprite.set( 0, 0, 'blue' ); sprite.set( 5, 5, 'red' ); sprite.set( 4, 4, 'green' ); sprite.set( 6, 6, 'yellow' ); sprite.set( 7, 7, 'orange' ); sprite.set( 15, 15, 'black' ); sprite.repaint();