Skip to main content
100%

fresh block

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

This example displays a static image of a decorative banner, loaded from an external URL and drawn onto a 640×480 canvas using p5.js. The sketch preloads the image file in the `preload()` function and renders it with `image(img, 0, 0, 400, 200)` in `setup()`. Although the `draw()` loop contains logic to change the fill color based on mouse input, no shapes are actually drawn in that loop, so the visualization remains purely a fixed image. The code relies on p5.js’s `loadImage`, `createCanvas`, and `image` functions.

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/5df40d75ef05f4b557973f56e67f55d2'>fresh block</a>

Similar vizzes