# Animated random boxes in p5.js & python

**URL:** <https://discourse.processing.org/t/animated-random-boxes-in-p5-js-python/43612>\
**Category:** Gallery\
**Created:** [January 3, 2024, 8:21pm UTC](https://discourse.processing.org/t/animated-random-boxes-in-p5-js-python/43612 "2024-01-03T20:21:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [January 3, 2024, 8:43pm UTC](https://discourse.processing.org/t/animated-random-boxes-in-p5-js-python/43612/2 "2024-01-03T20:43:26Z")

</div>

> [@salvalnx](#):
>
> … getting it to work with code for p5.js and then translating it to the Python…

You can use [PyScript](https://pyscript.net/) to write code in Processing’s [p5\*js](https://p5js.org/reference/) or [pjs](https://gotoloop.github.io/processing-js.github.io/reference/) flavors using [Python](https://www.python.org/) syntax! 🐍  
Take a look at some of my PyScript sketches to see how to do it: [PyScript](https://pyscript.com/@gotoloop) 👓

---

_[View the full topic](https://discourse.processing.org/t/animated-random-boxes-in-p5-js-python/43612)._
