# Mathober2025_Link

# **KnottedTwists**

For my 1st sketch of Mathober2025 coded in ***LiveCodeLab,* KnottedTwists** takes the prompt of **“Link”** and remixes the original example code in LiveCodeLab of a knot\*\*(***as knots are links in math***):\*\* [https://livecodelab.net/play/index.html#bookmark=aknot](https://livecodelab.net/play/index.html#bookmark=aknot)

## Poetry

```javascript
Knotted as it flows
Sometimes unknotted
But that is the way it was plotted
It's in genes, it is in the code
```

## Video

%[https://youtu.be/00PJPGU299g] 

## Code

```javascript
turns = time % 5 + 1
detail = 600
speed = 0.4
scale wave(0.03)* 1.2
rotate sin(time),cos(time),Math.hypot(sin(time),cos(time)*3)
detail times with i
	rotate 0, 0, (2 * pi) / detail
	move wave(0.3), sin(time)*3
		rotate (turns * i * pi) / detail + (time * speed), 0, 0
			rect (time % 45)/15, wave(sin(10))/3, Math.hypot(sin(wave(0.3)),3)
```
