You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is a bug, but if you don't call translations on color layers within push and pop, they accumulate when the two layers are cut out from one another. See here how the blue layer also inherits the translations from the pink layer when cutout is called. If the translations from each layer are in push and pop, the problem is solved. not sure if this is a bug. https://editor.p5js.org/brain/sketches/Kj3uwPFmI
The text was updated successfully, but these errors were encountered:
What's happening is that it copies all pixels of the current layer to an image, does the cutout operation on the image, and then pastes that back into the layer. What I didn't consider is that if that layer has a transformation on it it gets applied to the cutout image. Oops!
Slightly concerned that this might affect other things that I'm not aware of. Also just realizing that we really need some versioning for this library!
Not sure if this is a bug, but if you don't call translations on color layers within push and pop, they accumulate when the two layers are cut out from one another. See here how the blue layer also inherits the translations from the pink layer when cutout is called. If the translations from each layer are in push and pop, the problem is solved. not sure if this is a bug.
https://editor.p5js.org/brain/sketches/Kj3uwPFmI
The text was updated successfully, but these errors were encountered: