The video shows the led alternating between blinking and glowing using a StateMachine objet and two State inherited objects.
When it comes to program complex interactions with Adrduino, we may benefit from using state machines. This allows to separate the code needed to manage different states of the applications and easily switch from one stat to another.
The open source code is available on:
Instructions to create your own states for your own Arduino sketches are provided in the README.