Skip to main content
100%

Poulp

✓ Published0🌍 Public
YYannael
Last edited Apr 17, 2016
Created on Apr 17, 2016

This example uses p5.js to display a Burmese kitten photograph on a 500-by-500 canvas. The image is drawn twice: once at a fixed position and once with its x-coordinate and width oscillating based on cosine functions of the current time in milliseconds. The animation continuously shifts the moving copy, while the static copy remains centered. Pressing the “a” or “b” key changes the background to magenta or white, and pressing the left arrow key sets a random pink background, using p5’s `keyTyped` and `keyPressed` callbacks.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/Yannael/'>Yannael</a>'s block: <a href='http://bl.ocks.org/Yannael/7b03f4e6783e910c91d3996b8aa06850'>Poulp</a>

Similar vizzes