Rhythmic Breathing

This was a calming clock/breathing simulator created using JavaScript that can coach the user on proper rhythmic breathing. By doing so, it helps the user to sync with their internal clock in a calming manner. 

Information on rhythmic breathing: 

Rhythmic breathing essentially involves observing your breathing while simultaneously conditioning the inflow, outflow, and retention of your breath in a rhythmic pattern. Your breathing rate slows down when following a relaxed rhythm. This relaxes the body and also reduces wear and tear on internal organs. 

Rhythmic breathing involves breathing in a fixed rhythmic pattern, where the ratio of inhalation, exhalation, and retention is of 2:1:2:1. 

 Functions: 

- Features two breathing modes: 

+ Basic 2:1 Rhythmic Breathing: standard for reducing anxiety and aiding relaxation. 

+ 4-7-8 Breathing: also used to reduce stress and anxiety. Involves longer periods of inhale/exhale retention, and is said to aid in sleep. 

- Inhale/Exhale functions, represented by a growing and shrinking circle, presented in a hue that changes based on the time of day. 

- Day/Night modes that change based on the time of day (night mode launches automatically at 5PM). The user can also change day/night modes manually. 

- Calming music, which can be manually toggled by the user.