We've already discussed this here: Paste a Sprite on another Sprite
But I've decided to post it here as a feature request.
Now "paste on" block (that makes "a print" of one sprite on another sprite) can make it in the only way: this "print" will appear on non transparent area of the sprite being printed on. And that's all. This block uses
CanvasRenderingContext2D.drawImage() method with
CanvasRenderingContext2D.globalCompositeOperation property hardcoded to 'source-atop' value.
But there is a lot of other values of
globalCompositeOperation that can make
drawImage() to work in very different and interesting ways! Here is the list of these values and illustrations of their effects: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation Look, they allow to multiply, subtract and merge sprites in different ways, it's so cool!
That's why I ask @jens to make it possible to choose
globalCompositeOperation type for "paste on" block. @dardoro proposed something like this:
Jens said It's overburdened. Ok, it may be a partly hidden feature like 'pen vectors' block: it's not present in main blocks toolkit and available only when right-clicking on 'pen trails' block.
Please, vote for this request!
What do you think @bh?