# Mathober2024_Inverted

# BallingPaths

For my second sketch of Mathober coded in ***LiveCodeLab & Hydra, BallingPaths*** will be using the 2nd prompt of Mathober 2024: ***Inverted.*** This is done by using the ***invert*** function in **Hydra** to modify the colors of the **LiveCodeLab** animation.

## Poem

```javascript
Working the inner circle
With the pixels
Floating as if we are diving with them
No need for snorkels
As this voyage is rooted
```

## Video

%\[[https://youtu.be/EXPitlJFVeU](https://youtu.be/EXPitlJFVeU)\]

## Code

### LiveCodeLab ( Visuals and Audio slowed down to 33%)

```javascript
fill(1,25,)
animationStyle paintOver
rotate Math.cbrt(time),wave, Math.sqrt(time % 12 + 4)
box sin(time), Math.tan(time) * 3
if time % 15 >8
	move
else
	rotate
ball sin(time/2)
ball sin(time)
ball cos(time)
```

```javascript
//Audio Slowed down to 33%

if time % 30 > 20
    bpm 55
    play 'alienBeep'  ,'--x- --xx-x- -o-x- --xx--'
    play "mouth" + int(random 15) ,'x'
    play  "penta"  ,'--x- -x-- --x- -x--xx-'
    play "hiss" + int(tan(time) * 7) ,'x--x-o--o-x'
    play "pianoLDChord" + int(tan(120 / (time % 25))) ,'x--x--x'

else
    bpm 70
    play "pianoRHChord"   ,'--xx --x- --x- -x-x'
    play "scratch"  ,'--x- -x-x --x- -x-x-'
    play "mouth" + int(random 14) ,'x'
    play  "penta" + int(random 7) ,'xx--xx---xx'
    play "pianoLDChord" + int(tan(70 / (time % 15))) ,'xxxx----oo-----x-----x'
```

### Hydra

```javascript
s0.initScreen()

src(s0).scale([0.5,0.5,1,1.5].smooth()).invert(2).out()
```
