# WCCC_Sunset

# SunsetMetamorphosis

For this week's Creative Code Challenge by @sableraph: *<mark class="bg-yellow-200 dark:bg-yellow-500/30">"Sunsets”</mark>*<mark class="bg-yellow-200 dark:bg-yellow-500/30">,</mark> SunSetMetamorphosis coded from **LiveCodeLab & HydraVideoSynth** explores some of the transformations and huefulness that occurs during sunsets.

## Poetry

```javascript
That smooth jazzy feeling
Seen in the background
Engulfs on this sunset
As it washes, blends into the back
But a transformation of entities doesn’t lack
As the metamorphosis
Occurs in this virtual abyss
Where the visuals mix
Pixelations meets elevations
And it goes round and round
As today is a day for a reset
Where the sunset reaches beyond the ceilings
```

## Video

%[https://youtu.be/M0sUVnh1N1A] 

## Code

### LiveCodeLab

```javascript
if time % 6 > 3
	animationStyle motionBlur

simpleGradient color((time % 30)*7 + 24,abs(sin(time) * 244),(cos(time) * cos(time)) * 255), color(255 - (time % 45 * 5),200/time % 12 + 1,155),color(154 + time % 30 * 2,155 - sin(time)* 50,tan(time)/sin(time) - 0.2)


if time % 15 > 10
	ambientLight 100,20,200
	fill color((time % 30)*7 + 24,abs(sin(time) * 244))
	stroke yellow

if time % 15 < 5
	ambientLight 255,255,0
	fill orange
	stroke color((time % 30)*8 + 24,abs(sin(time) * 244))

if time % 15 < 10 && time  % 15 > 5
	ambientLight 200,125,90
	fill color(154 + time % 30 * 2,155 - sin(time)* 50,tan(time)/sin(time) - 0.2)
	stroke color(154 + time % 30 * 2,155 - sin(time)* 50,tan(time)/sin(time) - 0.2)


if time % 12 > 6
	rotate (time % 4 + 1)/9,(time % 4 + 1)/9,(time % 4 + 1)/9 
	move (time % 12 +1)/12
else
	move (time % 12 +1)/12,(time % 12 +1)/12,(time % 12 +1)/12
	rotate sin(time),cos(time),tan(time)

ball

resetMatrix // Reset here to keep the upper Portion and Lower Portion seperate

pushMatrix
rotate time, sin(time) * sin(time), Math.hypot((time % 6), sin(time))

pushMatrix // bookmark the position after the rotation
move (sin(time)*0.5) * (sin(time)*2), tan(time) /12
ball 0.75
move 0.5, 0, 0

pushMatrix
move ((sin(time)*0.5) * (sin(time)*2)), tan(time) /12 * -1
ball 0.25
popMatrix

popMatrix 
move -0.5, 0, 0
ball
resetMatrix // resets the position
rotate time, sin(time) * sin(time), Math.hypot((time % 6))
scale sin(time) * sin(time) / 2, time % 3 + 1, time % 3 + 1
ball

popMatrix




```

### LiveCodeLab - SunSet Only with Pixelation

```javascript
simpleGradient color((time % 30)*7 + 24,abs(sin(time) * 244),(cos(time) * cos(time)) * 255), color(255 - (time % 45 * 5),200/time % 12 + 1,155),color(154 + time % 30 * 2,155 - sin(time)* 50,tan(time)/sin(time) - 0.2)
```

### LiveCodeLab Audio

```javascript
if time % 30 > 15
	bpm 125
	play "hiss"  ,'--x- -xx- --x- --x-'
	play  "ride"  ,'--x- xx- x-x- -xx-'
else
	bpm 64
	play "cosmos"  ,'--x- ---- --x- ----'
	play "warm"  ,'--x- x--- --x- -xx-'

play "downstairs" + int(random 3) ,'x--x--xxx---xx'
play "penta" + int(random 2) ,'x--xx---xxxx----- x'
play "rust" + int(random 6) ,'x-xx----x-------x'

if time % 8 > 4
	play "tense" + int(random 14) ,'x-xx--x'
else
	play "detune" + int(random 14) ,'x-xx--x'

```

### HydraVideoSynth

```javascript
s0.initScreen()

src(s0).pixelate(50,50).modulateRotate(src(s0).pixelate(80,80).scale(7.15).modulateScale(src(s0).pixelate(75,75).scale(9.15))).out()
```
