# 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:** 1
**Showing post:** 2

<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…

---

_[View the full topic](https://discourse.processing.org/t/enums-in-processing/42930)._
