-
-
Notifications
You must be signed in to change notification settings - Fork 429
Closed
Labels
feature requestA neat new idea for this projectA neat new idea for this projecthelp wantedIssue could use a contributorIssue could use a contributor
Description
Example code:
function text(context, x, y, scaleX, scaleY, rotation, char) {
context.setTransform(scaleX, 0, 0, scaleY, x, y);
context.rotate(rotation);
context.textAlign = 'center';
context.font = 'normal normal 16px auto';
context.fillText(char, 0, 0);
context.setTransform(1,0,0,1,0,0);
}
...
text(context, fetti.x, fetti.y, Math.abs(x2 - x1) * 0.2, Math.abs(y2 - y1) * 0.2, Math.PI / 10 * fetti.wobble, fetti.shape.char);
...
confetti({
shapes: [{ type: 'char', char: '💩' }]
});
I am guessing we'd need an additional font family argument.
This code has very poor performance. Any acceptable solution will need to solve that.
bdthemes and furmandev
Metadata
Metadata
Assignees
Labels
feature requestA neat new idea for this projectA neat new idea for this projecthelp wantedIssue could use a contributorIssue could use a contributor