Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shapeFromText scalar Option has no Effect #246

Open
and-who opened this issue Jan 28, 2025 · 1 comment
Open

shapeFromText scalar Option has no Effect #246

and-who opened this issue Jan 28, 2025 · 1 comment

Comments

@and-who
Copy link

and-who commented Jan 28, 2025

The scalar Option of the shapeFromText has no Effect.

e.g. If you want to create Confetti which consists out of circles and emojis, you can not set the scale of Emojis idependent.

var unicorn = confetti.shapeFromText({ text: '🦄', scalar: 8 }); // This Scalar Option is useless

function shoot() {
confetti({
    spread: 360,
    ticks: 60,
    gravity: 0,
    decay: 0.96,
    startVelocity: 20,
    particleCount: 15,
    scalar: 1,
    shapes: ['circle', unicorn]
  });
}

setTimeout(shoot, 0);

In this Example Circles and Unicorns would be scaled to 1.

Expectaion:
Circles scaled to 1 and Unicorns Scaled to 8.
or
No Scale Option for shapeFromText

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@and-who and others