# Animation in Python mode

**URL:** <https://discourse.processing.org/t/animation-in-python-mode/40875>\
**Category:** Processing.py\
**Created:** [February 8, 2023, 3:43pm UTC](https://discourse.processing.org/t/animation-in-python-mode/40875 "2023-02-08T15:43:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![maral](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@maral](https://discourse.processing.org/u/maral)\
**Post date:** [February 8, 2023, 3:43pm UTC](https://discourse.processing.org/t/animation-in-python-mode/40875/1 "2023-02-08T15:43:30Z")

</div>

I am a complete newbie with respect to P5. Just downloaded the package and before starting, I was wondering if it has the option to create animations, similar to those created by the original Processing framework.

---

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [February 8, 2023, 4:14pm UTC](https://discourse.processing.org/t/animation-in-python-mode/40875/2 "2023-02-08T16:14:31Z")

</div>

By P5 I assume you mean p5.js 😄

I have been learning p5.js for the last few months and I have discovered that is just as capable of producing animations as Processing in Java mode. [OpenProcessing](https://openprocessing.org/) is full of p5.js sketches many demonstrating 2D/3D animations. Several sketches in my [OP portfolio](https://openprocessing.org/user/1623?o=5&view=sketches) were based on ideas I first implemented in Java mode.

There are some points worth mentioning

You will have to learn Javascript

- Javascript sketches _can_ be slower than the equivalent Java sketch
- Producing syntax error free code is harder in Javascript compared with Java
- p5.js reference documentation is more difficult to navigate round a topic

Personally I am enjoying programming in p5.js and Javascript and I am unlikely to go back to Java mode now. 😄

---

<div class="post-metadata">

**Author:** ![maral](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@maral](https://discourse.processing.org/u/maral)\
**Post date:** [February 8, 2023, 4:56pm UTC](https://discourse.processing.org/t/animation-in-python-mode/40875/3 "2023-02-08T16:56:27Z")

</div>

Hi,  
Actually, I meant P5 in Python 😬. I am okay with python but don’t know much about javascript (unfortunately). However, now I am trying to learn “original Processing” through these videos, which are nice but a bit slow:  
https://www.youtube.com/embed/ZxhZLoL_HZo?feature=oembed&wmode=opaque&list=PLrC-HcVNfULZoKXd2PRi1Mcl3IhGrBiLk

OpenProcessing looks amazing! Thank you for suggesting that. However, I have a few ideas that I am not sure I can find more easily than I can implement them (mainly because I don’t know the right keywords 🤓).

What I have in mind is similar to this ([Flocking / Examples / Processing.org](https://processing.org/examples/flocking.html)) but not quite the same. But the Boid function is pretty complex at first glance.

I’d like to see your works if you share them somewhere publicly and don’t mind sharing:)

Thanks for your response.

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [February 8, 2023, 5:16pm UTC](https://discourse.processing.org/t/animation-in-python-mode/40875/4 "2023-02-08T17:16:16Z")

</div>

Hi and welcome

More animation

> **[Browse Sketches - OpenProcessing](https://openprocessing.org/browse/?time=anytime&type=all&q=animation%20#)**
>
> Browse Sketches - OpenProcessing

Place to start

> **[home | p5.js](https://p5js.org/)**
>
> p5.js a JS client-side library for creating graphic and interactive experiences, based on the core principles of Processing.

https://www.youtube.com/embed/videoseries?list=PLglp04UYZK_PrN6xWo_nJ-8kzyXDyFUwi&wmode=transparent&rel=0&autohide=1&showinfo=1&enablejsapi=1

---

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [February 8, 2023, 5:18pm UTC](https://discourse.processing.org/t/animation-in-python-mode/40875/5 "2023-02-08T17:18:43Z")

</div>

> [@maral](#):
>
> Actually, I meant P5 in Python

No problem I have changed the discussion title so you get more relevant replies.

---

<div class="post-metadata">

**Author:** ![maral](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@maral](https://discourse.processing.org/u/maral)\
**Post date:** [February 8, 2023, 5:23pm UTC](https://discourse.processing.org/t/animation-in-python-mode/40875/6 "2023-02-08T17:23:37Z")

</div>

thank you, quark. (writing to reach more than 20 characters) 🙂

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [February 8, 2023, 5:32pm UTC](https://discourse.processing.org/t/animation-in-python-mode/40875/7 "2023-02-08T17:32:55Z")

</div>

Hi

The link you provided explain Object-Oriented Programming (OOP)

[![](https://img.youtube.com/vi/YcbcfkLzgvs/hqdefault.jpg "8.1: What is Object-Oriented Programming (OOP)? - Processing Tutorial") ](https://www.youtube.com/watch?v=YcbcfkLzgvs)

---

<div class="post-metadata">

**Author:** ![maral](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@maral](https://discourse.processing.org/u/maral)\
**Post date:** [February 8, 2023, 5:34pm UTC](https://discourse.processing.org/t/animation-in-python-mode/40875/8 "2023-02-08T17:34:41Z")

</div>

Ah. Also thanks Jafal!🙂
