# WCCChallenge_Nodes

# InterGalacticTraffic

For this week's Creative Code Challenge by @sableraph : ***Nodes,*** I Coded **InterGalacticTraffic.**

This week's languages are **NoiseCraft (Https://noisecraft.app)** for the sounds, **LiveCodeLab** for visuals & **Hydra** for Visual Effects.

## **Nodal Process**

* **NoiseCraft** is a Node Based Language for sound
    
* The Intersection of transportation lines coded in layered **LiveCodeLab skethces** can be considered nodes as they represented the congestion points that occurred on this route:
    

> "The transportation system is represented by a network of lines; each road and transit route is drawn as a line on a map or overlay at the same scale as the zone map. **The intersections of the transportation lines** are called nodes". - [https://www.webpages.uidaho.edu/niatt\_labmanual/chapters/traveldemandforecasting/professionalpractice/NetworksAndNodes.htm#:~:text=The%20transportation%20system%20is%20represented,transportation%20lines%20are%20called%20nodes](https://www.webpages.uidaho.edu/niatt_labmanual/chapters/traveldemandforecasting/professionalpractice/NetworksAndNodes.htm#:~:text=The%20transportation%20system%20is%20represented,transportation%20lines%20are%20called%20nodes).

* This can be seen from a first-person perspective in the piece.
    
* Which corresponds with the sound designed to sound like **Intergalactic Traffic.**
    
* A 3D Model was made by me to mimic a galactic spaceship that is also stuck in traffic.
    

## Poem

```javascript
Nodes leading to Traffic
Intergalactic roads
That leads to sounds and tolls
Round as the the sound that is found
From the frantic nodes
That emit from down and around
As heard from the tales of the sonic
```

## Video

<iframe width="560" height="315" src="https://www.youtube.com/embed/BGAGYqXrz5Q"></iframe>

## Code

### NoiseCraft: [https://noisecraft.app/1416](https://noisecraft.app/1416)

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1688324728199/db8f9edc-228c-49b6-9826-6058bd384838.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1688325015664/47b4172e-ce24-402c-9515-77ddd59229a6.png align="center")

### **LiveCodeLab**

```javascript
if time % 20> 10
	background black
else if time % 20 < 10 && time % 20 > 5
	background orange
else
	simpleGradient black,yellow,teal

if time % 17 > 11
	rotate time / 10
else
	rotate cos(time)

move 0, -1.2, -1
rotate pi / 2, 0, 0


if time % 13 > 5
	noStroke
	scale 0.5
else
	scale 1.27


//wave makes it split into strands , larger waves, makes movement

12 times with j
	move 0, 0.5, wave(0.3) 	37 times with i


		rotate 0, 0.2, 0

		if time % 30 > 15
			r = ((i  * 3) + (time * 12)) % 255
			g = ((i * 7) + (time * 30 + 20) * 7) % 255
			b = ((j * 17) + (time * 30 + 40) * 3) % 255
			fill r, g, b
		else
			r = ((i  * 3) + (time * 12)) % 255
			g = abs(((i * 7) - (time * 30 + 20) * 7) % 255)
			b = sin(((j * 17) + (time * 30 + 40) * 3) % 255)
			fill r,g,b


		if time % 35 > 15
			rect 0.3, 0.3
		else
			peg 0.5,0.5
		move 0.5, 0, 0
```

### Hydra

```javascript
s0.initScreen()
s1.initScreen()

src(s0).scale(1.75).pixelate(()=> (time % 10 + 1) * 5000).diff(src(s1).scale(2).colorama(()=> (time % 20+1)/35)).out()
```
