# Genuary2024_Bauhaus

# **PixelPatches**

The prompt for **Genuary 2024 Day 18 is Bauhaus**

PixelPatches was inspired by Anni Albers by coding it in **BarbaraGraphics & Hydra**

**PixelPatches2** is re-inspiration of **Anni Albers** as she went to **Bauhaus**

## Poem

```ocaml
Pixelation on Patterns
Placing emphasis on Splatters
Of the colors with the Pixels
As they move and swivel
```

## Video

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

## Code

### BarbaraGraphics

```ocaml
triangle rand-c color 180 rotate 8 10 translate
50 triangle red color 90 rotate 35 11 size
all repeat
50 triangle blue color 50 50 translate 40 10 size
50 triangle purple color 90 rotate 50 0 translate 35 50 scale
all repeat
rect rand-c color 70 35 rotate 14 7 translate
triangle rand-c color 180 rotate 25 0 translate
triangle rand-c color 25 0 translate
triangle rand-c color 180 rotate 0 25 translate
rect rand-c color 97 19 rotate 43 6 translate 23 11 size
triangle rand-c color 0 25 rotate 5 15 translate
circle rand-c color 97 19 rotate 43 6 translate 17 5 size
triangle rand-c color 5 30 translate
duplicate 25 25 translate rand-c color
duplicate 180 rotate rand-c color
all repeat
```

### Hydra

```javascript
s0.initScreen()

src(s0).pixelate([15,30].smooth(),[15,30,45].smooth()).out()

speed = 0.25

```
