# WCCC_Resistance

# ResistingChange

For this week's Creative Code challenge by [@sableRaph](https://hashnode.com/@sableRaph): “ ***Resistance***”, **ResistingChange** is coded in ***Hydra, Locomotion & LiveCodeLab.*** 

## Resistant Element

**ResistingChange** follows the journey of an *OrDroid*, who is resistant to the changes seen on the right side of the screen as well as not following the choreography of the other *OrDroids* floating around. The LiveCodeLab Audio provides an ambience representing this journey.

## Poem

```ocaml
Resistance To Change
Options for Range
Are Thoughts Hidden,
Locked up in a cage?
Or free to roam to Life’s Rhythm
Free to Scroll
Obtain new Zones
As it blends into the next page?
Is it a matter of age?
A scatter of the presence of one's own?
```

## Video

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

## Code

### Locomotion

```haskell
-- Triple Light Points
point {x = range 0 17 (osc 0.15), z = range 0 6 (osc 0.35) , intensity = range 8 35 (osc 0.15), color = 0xFFA500  };
point {x = range 0 17 (osc 0.15), z = range 0 6 (osc 0.35) , intensity = range 15 35 (osc 0.25), color = 0xFF0000 };
point {x = range 0 17 (osc 0.15), z = range 0 6 (osc 0.35) , intensity = range 20 45 (osc 0.25), color = 0x661111 };

dancer { url="Ordroid", size = 3, y = - 6, x = range -5 5 (osc 0.125), dur = 4};
dancer { url="Ordroid", size = 3, y = - 6, x = range 5 -5 (osc 0.125), dur = 4};

b n = dancer { url="Ordroid", ry = range -360 360 (osc 0.3), 
lz = range - 360 360 (osc 0.3),animation = [range 1 4 (osc 0.6), 1, 
range 8 16 (osc 0.6),2 , 1], size =  ((n +8)/12 * 2) , 
rx =  step [-3,5,1], z = range -5 5 (phase 1 (n/50) * 2 + (-2)), rz = n * 23.7,dur = range 6 12 (osc 3), x = n - (4) * 3 + 9 + range - 5 5 (osc 0.15), lx = n * 20 , ly = n * 40 + range 40 190  (osc n * 6), dur = 12 };

for [0..12] b;
```

### Hydra

```javascript

s1.initScreen()

src(s1).pixelate(10).repeat([1,5].smooth()).
scrollX(1,0.5).add(src(s1).colorama()).out()

speed = 0.25
```

### LiveCodeLab Sample

```javascript
bpm 60

play 'tranceKick'  ,'-x-x ---x x-x-- --xx'
play "voltage"  ,'--x- --xx-- --x- ----'
play "penta" + int(random 16) ,'x-xx-xx-----x'
play "rust" + int(random 16) ,'x--xxx'
play "beep" + int(random 4) ,'xx--'
```

```javascript

if time % 20 > 10
	bpm 60
	play 'tranceKick'  ,'-x-x ---x x-x-- --xx'
	play "voltage"  ,'--x- --xx-- --x- ----'
	play "penta" + int(random 16) ,'x-xx-xx-----x'
	play "rust" + int(random 16) ,'x--xxx'
	play "beep" + int(random 4) ,'xx--'
	play "snap",'xx--x--x--xx'
	play "snare", 'xx--xx---xx'
	play "tap",'xx---xx--x---x'
else
	bpm 88
	play "snap",'xx--x--x--xx'
	play "snare", 'xx--xx---xx'
	play "tap",'xx---xx--x---x'
	play 'tranceKick'  ,'-x-x ---x x-x-- --xx'
	play "voltage"  ,'--x- --xx-- --x- ----'

```
