Skip to main content
100%

fresh block

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

This example uses the p5.js library to create an interactive sound and color visualization. It displays a black canvas that turns yellow when a key is pressed, while simultaneously playing an audio file loaded via the p5.js-sound extension’s `loadSound` and `soundFile.play` methods. The sketch shows how keyboard input can trigger both visual feedback and audio playback, with the background reverting to black when the key is released. The code relies on p5.js’s `setup`, `keyPressed`, and `keyReleased` functions to manage the interaction.

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>

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

Similar vizzes