Zapp image

Making Single Shadow for all Display Objects
by Dr Abstract
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.
https://zimjs.com/zapp/Z_P7QX4
Container Bitmap Circle Rectangle effect updateEffects wiggle loop mov alp ble addTo center ShadowEffect ColorEffect Ticker

PROMO

EDITOR

FULL

SLATE

ZIM is a JavaScript Canvas Framework for everyone to Code Creativity! ZIM