Skip to content

Commit

Permalink
Merge pull request #176 from FroostyCodes/feat/add-more-missing-facto…
Browse files Browse the repository at this point in the history
…ry-methods

feat: added missing factory methods missing in rewrite
  • Loading branch information
twlite committed Oct 31, 2023
2 parents a5ba71c + 774c3f4 commit 685f340
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions src/assets/TemplateFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -650,5 +650,58 @@ export const TemplateFactory = {
}
]
};
}),
Wanted: createTemplate((image: ImageSource) => {
return {
steps: [
{
image: [
{
source: new TemplateImage(ImageFactory.WANTED),
x: 0,
y: 0
}
]
},
{
image: [
{
source: new TemplateImage(image),
x: 145,
y: 282,
width: 447,
height: 447
}
]
}
]
};
}),
Wasted: createTemplate((image: ImageSource) => {
return {
steps: [
{
image: [
{
source: new TemplateImage(image),
x: 0,
y: 0,
preprocess(_canvas, ctx) {
ctx.filter = 'greyscale(100%)';
}
}
]
},
{
image: [
{
source: new TemplateImage(ImageFactory.WASTED),
x: 145,
y: 282
}
]
}
]
};
})
};

0 comments on commit 685f340

Please sign in to comment.