# Genuary2025_ShapesRect

# **RectSplash**

The prompt for **Genuary2025** Day 24 is *”* ***Use One Geometric Shape****”  &* I chose **Rectangles**.

**RectSplash** is coded in **LiveCodeLab** and is made with rectangles moving across the screen.

## Poetry

```ocaml
Rectangles roaming
Rotating & rolling
Running & rimming along
Reciting the rhymes that belong
Twirling and twisting
Avoiding the mistakes that were tripping
As the angles of the others are tilting
Tiling and tipping
Tipping to the ways as the rectangles are roaming
```

## Images

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1737773190644/d38ccf99-d393-43d0-bf91-4f439c2174f5.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1737773196853/d0e66a83-041a-429c-a7ba-6b609f3b875a.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1737773209137/f14a8698-edeb-4f68-92f7-1e569edb9669.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1737773204168/b1fe940c-1a90-4936-a17c-d5737e9164e4.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1737773213161/36c66100-a9a7-4f4f-81f2-2017527089a9.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1737773216886/471a2c17-4688-441b-8848-23b0050618cc.jpeg align="center")

## LiveCodeLab Code

```javascript
ringDetail = abs(67 - (time % 10) * 4)

animationStyle paintOver

ambientLight 255, 200, 155

if time % 9 > 5
	stroke black
else
	stroke yellow

if time % 9 > 4
	fill gold
else
	fill turquoise

if time % 5 > 3
	simpleGradient sandybrown,pink, saddlebrown 
else
	simpleGradient pink, saddlebrown, yellow

rotate time / 5
scale 0.05 + ((time % 20)/20)

//center planetary 
13 + time % 8 times with i 
	rotate (time / 5) + i
	ringDetail times
		rotate 0, Math.cbrt(sin(time))/1000, (2 * pi) / ringDetail
		move 2, Math.hypot(time % 3  +1), 0
			rect sin(time %5 + 0.5) + 1, 0.3 + (1 / ringDetail)

//secondary planetary spur
9 - time % 4 times with i
	rotate (time / 5) + i, (time/4) + i
	move 0,1,1
	ringDetail times
		rotate 0, 0, (2 * pi) / ringDetail
		move 2, 0, 0
			rect sin(time %5 + 0.5) + 1, 0.3 + (1 / ringDetail)
```
