# Mathober2026_TwoTriangles

# TrianglePairUps

For my 9th sketch of *Mathober2026* coded in ***L5Lua***, **TrianglePairUps** showcases a few triangles that are paired to follow a couple of two triangle theorems(*Theme of Day 29*) but are trying to nudge themselves out.

## Poetry

```python
Three Sided Entities
Roaming in pairs
Trying to reach a new geometry
As they flap these wings into the air
```

## Video

### [https://www.youtube.com/shorts/0T32m4rjhWY](https://www.youtube.com/shorts/0T32m4rjhWY)

## Code

```lua
require ("L5")

function setup()
  size(1000,1000)
end

shades = {'orange','teal','pink','yellow'}

function draw()
  background(220)
  scale(1.7)
  
  for i = 1, 4 do
    tri1(shades[i],i)
  end
  
  frameRate(frameCount % 20)
  
end


function tri1(shade,adjust)
  fill(shade)
  triangle(random(200,300),100 * adjust,250 + frameCount % 12,150,60,350)
  fill(shade)
  triangle(random(200,300),100,250,150 * adjust,60 + frameCount % 12,350)
end


```
