Navigation for the ZIM JavaScript Canvas Framework

AboutExamplesLearnEditorCodeDocsDevsGold
ZAPP

Zapps are made in the ZIM EDITOR by creators like you!

Zapp: Making Single Shadow for all Display Objects | ZIM JavaScript Canvas Framework - Code Creativity

Making Single Shadow for all Display Objects

Here we test three different ways to make a single shadow for many objects. The best is to cache the scene, make a Bitmap() of the scene and set its blendmode to destination-out. Make the stage black and put a light rectangle over it as a backdrop. The blendmode will ignore the rectangle and go right to the stage color. Other options are ColorEffect and ShadowEffect but these take much more processing.
by Dr Abstract
Link copied to clipboard!
https://zimjs.com/zapp/Z_P7QX4