Skip to main content

Mathober2025_Octagonal-Heptagonal

Octos & Heptas

Published 1 min readMarkdown
Part of seriesMathober2025
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()

No comments yet. Be the first to comment.

Mathober2025

Part 8 of 31

Explorations during Mathober2025

Up nextMathober2025_DigraphSinkPoetically Sinking