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

Help with effects #410

Open
tirzah2 opened this issue Aug 12, 2024 · 1 comment
Open

Help with effects #410

tirzah2 opened this issue Aug 12, 2024 · 1 comment

Comments

@tirzah2
Copy link

tirzah2 commented Aug 12, 2024

Hi!
I'm trying to add an effect (for example edge) to all layers simultaneously. With filters is easier cause I can see it adds things like huge-rotation directly to the selected layer. I'm running it inside an iframe using bundle.js, if you could give me some info on how applying an effect to a layer can be done without using the top toolbar, I would much appreciate. Thanks!

@viliusle
Copy link
Owner

viliusle commented Aug 13, 2024

here is example https://github.com/viliusle/miniPaint/blob/master/src/js/modules/effects/edge.js to apply edge effect. You only would need to apply it for each layer.

and here are example how to work with iframe: https://github.com/viliusle/miniPaint/tree/master/examples

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