Skip to main content
100%

TestOpenProcessing

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

A small ball moves across a 100-by-100 canvas, bouncing off the edges with reduced velocity. The motion is driven by device acceleration data, which influences both velocity and position each frame. The sketch uses the p5.js library, with `setup()` initializing the canvas and `draw()` updating the ball’s coordinates via the `ballMove()` function. Acceleration values are read directly from `accelerationX` and `accelerationY`, and the ball’s speed and bounce damping are controlled by the constants `vMultiplier` and `bMultiplier`.

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>

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

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

forked from <a href='http://bl.ocks.org/Yannael/'>Yannael</a>'s block: <a href='http://bl.ocks.org/Yannael/5e6777c3d0c0010c414d5ae10ddd8201'>TestOpenProcessing</a>

forked from <a href='http://bl.ocks.org/Yannael/'>Yannael</a>'s block: <a href='http://bl.ocks.org/Yannael/c4f9ddd9b06c520a487e67065ade175c'>TestOpenProcessing</a>

forked from <a href='http://bl.ocks.org/Yannael/'>Yannael</a>'s block: <a href='http://bl.ocks.org/Yannael/9231ef8332f00364d43f17cfd2fb26c1'>TestOpenProcessing</a>

forked from <a href='http://bl.ocks.org/Yannael/'>Yannael</a>'s block: <a href='http://bl.ocks.org/Yannael/962dc3100d43ecf896be7f1dc0504d54'>TestOpenProcessing</a>

forked from <a href='http://bl.ocks.org/Yannael/'>Yannael</a>'s block: <a href='http://bl.ocks.org/Yannael/bfb26079417d7204aa9b880889e6476d'>TestOpenProcessing</a>

forked from <a href='http://bl.ocks.org/Yannael/'>Yannael</a>'s block: <a href='http://bl.ocks.org/Yannael/26b8b44764b870c3ca7059009daf8e02'>TestOpenProcessing</a>

forked from <a href='http://bl.ocks.org/Yannael/'>Yannael</a>'s block: <a href='http://bl.ocks.org/Yannael/87ae873828a47cf75fc00b1246c666ce'>TestOpenProcessing</a>

forked from <a href='http://bl.ocks.org/Yannael/'>Yannael</a>'s block: <a href='http://bl.ocks.org/Yannael/18b016977e7d522a5795221c1a83fcc4'>TestOpenProcessing</a>

forked from <a href='http://bl.ocks.org/Yannael/'>Yannael</a>'s block: <a href='http://bl.ocks.org/Yannael/6b214f882c2cb69a927309add516083a'>TestOpenProcessing</a>

forked from <a href='http://bl.ocks.org/Yannael/'>Yannael</a>'s block: <a href='http://bl.ocks.org/Yannael/5dcb2a9021b35da59afe0a526d0b66a8'>TestOpenProcessing</a>

Similar vizzes