# Genuary2024_Pixels+Shader+10000+SeedGrowth

# PixelSeeded10000

The prompts for **Genuary 2024 Day 4:**  is **Pixel**, **Day 16: 10000  Day 26: SeedGrowth**  and **Day 30: Shaders**

PixelSeeded10000 is coded with, **ShaderPark, Locomotion & Hydra**

## **Pixelation Design**

**Shaderpark** was used as the basis for this sketch as a **pixelated shader**  that acts as the seed that grows the forest within **Locomotion.**

**Hydra** is used to further the pixelation and also draw **10 000** seedlings of the shaderpark sketch via the repeat(100,100) code snippet.

## Poem

```ocaml
Pixelated Mess
With an indicator to show the progress
Of this screen that needs saving from this test
That occurred when the keys were pressed
```

## Video

<iframe width="560" height="315" src="https://www.youtube.com/embed/mYKucYwaJL8?si=ePKikbVtL6oeuzbk"></iframe>

## Code

### ShaderPark

```javascript
color(0.1, 1.0, 0.1);


rotateY(sin(time) + 1);
torus(0.3, 0.08,1);
displace(0.2,0.2,0.2);

rotateZ(cos(time)+3);
color(1.0,0.1,0.1);
torus(0.1,0.3,0.08);


color(0.5,0.1,0.6);
mirrorX();
displace(0.2, cos(time), 0.2);
mirrorZ();
displace(sin(time), 0.2, 0.2);
rotateX(time/2);
rotateZ(cos(time));
rotateY(sin(time) + 1);
torus(0.3, sin(time),1);
```

### **Hydra**

```javascript
s0.initScreen()

src(s0)
.pixelate([1000,5000,10000,20000],[2000,4000,50000,100000])
.repeat(100,100)
.diff(src(s0)
.scale(2))
.out()
```

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

src(s0).blend(s1).out()
```

### Locomotion

```haskell

point {x = range 0 17 (osc 0.15), z = range 0 6 (osc 0.35) , intensity = range 8 25 (osc 0.5), color = 0xFFA500};
directional {z = 6, intensity = range 0 10 (osc 0.5), color = 0xff0000};
directional {z = 4, intensity = range 0 15 (osc 0.5), color = 0xffffa5};
directional {z = 2, intensity = range 5 15 (osc 0.5), color = 0xffffff};
directional {z = 2, intensity = range 5 15 (osc 0.5), color = 0x00FfA5};

--garden building
dancer { url = "Garden.glb",size = range  1.2 2 (osc 0.15), y = -1.5};
dancer { url = "Garden.glb", size = range -1  3 (osc 0.15),y =  range -1 1.5 (osc 0.015)};
dancer { url = "Garden.glb", size = range 0.5 3.5(osc 0.15), y = range -1.5 3 (osc 0.015)};
```
