Skip to main content

Command Palette

Search for a command to run...

Mathober2025_Octagonal-Heptagonal

Octos & Heptas

Updated
1 min read
Mathober2025_Octagonal-Heptagonal

OctoVsHepta

For my 8th sketch of Mathober2025 coded in LiveCodeLab, OctoVsHepta takes the prompt of “Octagonal/Heptagonal” and showcases side by side, a figure that has 8 sides and another that has 7 sides and how they slightly differ.

Poetry

Octagonal with slightly more
Heptagonal with slightly less
Similar in the creation process
But differences can be seen as the time soars

Images

Code

//Octagonal
pushMatrix()
move -1.5,0
8 times with i
    rotate sin(time % i),Math.hypot(time %6, cos(time)*5)/10,wave(Math.hypot(sin(time),cos(time)))/10
    if time % 30 > 15
        rect i/(time % 10 + 1)
    else
        line i/(time % 10 + 1)
popMatrix()


//Heptagonal
pushMatrix()
scale 0.5
move 1.5,0,5
7 times with i
    rotate sin(time %i),Math.hypot(time %6, cos(time)*5)/10,wave(Math.hypot(sin(time),cos(time)))/10
    if time % 30 > 15
        rect i/(time % 10 + 1)
    else
        line i/(time % 10 + 1)
popMatrix()

Mathober2025

Part 24 of 31

Explorations during Mathober2025

Up next

Mathober2025_Notation

Notation, Rotations & Dots