# Enums in Processing

**URL:** <https://discourse.processing.org/t/enums-in-processing/42930>\
**Category:** Beginners\
**Created:** [October 9, 2023, 5:47pm UTC](https://discourse.processing.org/t/enums-in-processing/42930 "2023-10-09T17:47:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuhuhwy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/nuhuhwy/32/18485_2.png) [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Post date:** [October 9, 2023, 5:47pm UTC](https://discourse.processing.org/t/enums-in-processing/42930/1 "2023-10-09T17:47:12Z")

</div>

Do enums work in processing? I didn’t find an example sadly, would be great help if someone could provide an example!  
🙂

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [October 9, 2023, 6:12pm UTC](https://discourse.processing.org/t/enums-in-processing/42930/2 "2023-10-09T18:12:56Z")

</div>

> [@Scale up and down an ellipse doesn't work within a function](https://discourse.processing.org/t/scale-up-and-down-an-ellipse-doesnt-work-within-a-function/42564/22):
>
> The whole script would be preferable in this case. I anyway went ahead because it is fun. What I would implement is what is known as a finite state machine. Your program can be in one of a number of states. What I described in post #19 are the states. You can place those states in an enum to give them sensible names. // states that our application can be in enum FSM { WAITTRIGGER, GROW, HOLD, SHRINK, COMPLETE }; // variable to hold the current application state FSM applicati…

---

<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:** [October 9, 2023, 8:12pm UTC](https://discourse.processing.org/t/enums-in-processing/42930/3 "2023-10-09T20:12:51Z")

</div>

Hi

> **[Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/23409/enums-in-openprocessing.html)**
>
> Processing is an electronic sketchbook, a language and a worldwide community. This is its forum.

> **[Enum Types (The Java™ Tutorials \>        
            Learning the Java...](https://docs.oracle.com/javase/tutorial/java/javaOO/enum.html)**
>
> This beginner Java tutorial describes fundamentals of programming in the Java programming language
