Skip to main content

Command Palette

Search for a command to run...

Mathober2025_Link

Links are all Around us

Updated
1 min read
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

Poetry

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

Video

Code

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)