# Genuary2024_Chaotic

# ChaosShapes

The prompt for **Genuary 2024 Day 8 is Chaotic** and this chaotic system was coded in LivecodeLab, both audio and visuals

## Poem

```ocaml
Pixels and Palettes
Grids with Chaotic systems
Hidden in their rhythms
As the Pixels and Paletteless
See time as minuteless
As they go and go
The Pixels and Palettes
```

## Video

<iframe width="560" height="315" src="https://www.youtube.com/embed/-DdDSzl5qIA?si=2fxgczxkZrUC-wwP"></iframe>

## LiveCodeLab Code

```javascript

if time % 30 < int(random time %17)
	animationStyle motionBlur
	if time % 10 > 5
		simpleGradient blue, orange, gold
	else
		simpleGradient black, blue, green
else
	animationStyle paintOver


background black
scale 0.001 + wave(sin(Math.hypot((time % 6)/100,0.2)))
rotate time, wave(sin(1.2)), tan(wave(Math.sqrt(3)))

50 + (int(random time %17) * 4) times with i
	rotate time * 2 + sin(i)
		move cos(wave(0.003)),-cos(wave(0.003)) * (time % 12 + 0.1), sin(wave(0.003))
			box Math.cbrt(i/50), Math.sqrt(i * wave(0.0003))+2, Math.cbrt(i*wave(0.003))

//Musical Touch
bpm 58
play 'tranceKick'+ int(random time %17)  ,'-x-x ---x x - xx x -- --xx'
play 'alienBeep'  ,'--x- -x--xx --x- -xx---'
play 'penta',  '--x- -xx- x  x --x- --x-'
play "beep" + int(random time %6) ,'x--xx- xxx'
play "tweet" + int(random 14) ,'x'
play "voltage"  ,'--x- -xx--xx- --x- ----'
play "warm"  ,'--x- -x--x- --x- ----'


```
