# Transitions between states

**URL:** <https://discourse.processing.org/t/transitions-between-states/31376>\
**Category:** Coding Questions\
**Created:** [July 22, 2021, 6:12am UTC](https://discourse.processing.org/t/transitions-between-states/31376 "2021-07-22T06:12:53Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [July 22, 2021, 4:23pm UTC](https://discourse.processing.org/t/transitions-between-states/31376/5 "2021-07-22T16:23:00Z")

</div>

Hello,

A Processing example:

> [@Animation that transitions using frameCount](https://discourse.processing.org/t/animation-that-transitions-using-framecount/15378/1):
>
> A very simple example that transitions through scenes over time: // Author: GLV // Date: 2019-11-10 // Description: // Animate over time using frameCount // A very simple example that: // Uses frameCount to keep track of time // Fades in and out by modifying alpha component of HSB color // Cycles through HSB colors int scene = 0; int sec = 60; float alpha = 0; void setup() { size(500, 500); textSize(36); textAlign(CENTER, CENTER); colorMode(HSB, 360, 100, 100, 100); } void draw()…

I have done this a few different ways in my projects.

There may be something useful in there for you.

`:)`

---

_[View the full topic](https://discourse.processing.org/t/transitions-between-states/31376)._
