Zapp image

Cycle Through Pictures by Pressing
by Dr Abstract
Here we manually cycle through a set of pictures by pressing them. The trick is to add a pic to a Container, then each press, remove the existing pic and add the next pic. We use a modulus % to cycle the index over and over. The modulus gives a remainder.
https://zimjs.com/zapp/Z_HCSCS
Frame Pic Container loop cur scaleTo addTo center

PROMO

EDITOR

FULL

SLATE

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