From 9b5f919b5c416dff3149f5cffd789c00274757ab Mon Sep 17 00:00:00 2001 From: Michiel van der Geest Date: Wed, 21 Feb 2024 16:06:05 +0100 Subject: [PATCH] Added support for colorizing sprites. --- src/components/Sprite.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Sprite.js b/src/components/Sprite.js index e28d9483..305c2662 100644 --- a/src/components/Sprite.js +++ b/src/components/Sprite.js @@ -22,9 +22,9 @@ import symbols from '../lib/symbols.js' export default () => Component('Sprite', { template: ` - + `, - props: ['image', 'map', 'frame', 'w', 'h'], + props: ['image', 'map', 'frame', 'w', 'h', 'color'], state() { return { spriteTexture: false,