Skip to content

Commit

Permalink
Added support for colorizing sprites.
Browse files Browse the repository at this point in the history
  • Loading branch information
michielvandergeest committed Feb 21, 2024
1 parent 2683da2 commit 9b5f919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Sprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import symbols from '../lib/symbols.js'
export default () =>
Component('Sprite', {
template: `
<Element w="$w" h="$h" :texture="$texture" />
<Element w="$w" h="$h" :texture="$texture" :color="$color" />
`,
props: ['image', 'map', 'frame', 'w', 'h'],
props: ['image', 'map', 'frame', 'w', 'h', 'color'],
state() {
return {
spriteTexture: false,
Expand Down

0 comments on commit 9b5f919

Please sign in to comment.