home.social

#sierpinski — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #sierpinski, aggregated by home.social.

  1. @scruss The PICTURE command can group objects, and also output SVG animations. Although I’ve made a screen recording here as animated SVGs aren’t accepted

    TO CORNER :S
    RIGHT 45 FORWARD :S RIGHT 45
    END

    TO ONESIDE :S :DIAG :LEVEL
    IF :LEVEL = 0 [ STOP ]
    ONESIDE :S :DIAG :LEVEL - 1
    RIGHT 45 FORWARD :DIAG RIGHT 45
    ONESIDE :S :DIAG :LEVEL - 1
    LEFT 90 FORWARD :S LEFT 90
    ONESIDE :S :DIAG :LEVEL - 1
    RIGHT 45 FORWARD :DIAG RIGHT 45
    ONESIDE :S :DIAG :LEVEL - 1
    SLEEP 20
    END

    TO SIERP :S :LEVEL
    :DIAG = :S / 1.414
    REPEAT 4 [ ONESIDE :S :DIAG :LEVEL CORNER :DIAG ]
    END

    CLEARSCREEN
    HIDETURTLE
    PENUP HOME RIGHT 90 BACK 100 LEFT 90 BACK 100 PENDOWN
    ; PICTURE "≈" [
    ; SIERP 10 2
    ; ]

    PICTURE “Sierpinski004.svg” [

    repeat 1 [
    SIERP 10 4
    SLEEP 2000 ]

    #animation #SVG #loop #2d #CreativeCoding #pattern #Sierpinski #fractal #Logo #TurtleGraphics #geometry #CreativeCode #procedural #CreativeCodeArt #design #GraphicDesign

  2. @scruss Nice, this version has a few changes to fill the shapes with PENDOWN and PENUP to avoid draw extraneous lines.

    TO hx :size
    REPEAT 6 [
    tri :size FORWARD :size LEFT 60 CLOSE FILL
    ]
    END

    TO PT :size
    FORWARD :size
    RIGHT 150
    FORWARD :size
    LEFT 30
    END

    TO superhex :size
    REPEAT 6 [
    FILLCOLOR "gray" FILLTRANSPARENCY 50 hx :size PU PT :size FORWARD :size LEFT 60 PD
    ]
    END

    TO tri :size
    REPEAT 3 [
    PT :size
    ]
    END

    HOME CLEARSCREEN HIDETURTLE
    superhex 50

    #CreativeCoding #pattern #Sierpinski #fractal #Logo #TurtleGraphics #geometry #CreativeCode #procedural #CreativeCodeArt #design #tiling #GraphicDesign

  3. @scruss Thanks. Here’s the Sierpinski program adapted to run LibreOffice using the built-in LibreLogo environment help.libreoffice.org/latest/en

    One of LibreLogo’s advantages is that the output is vector graphics that can be edited (but rasterised here for convenience).

    TO CORNER :S
    RIGHT 45 FORWARD :S RIGHT 45
    END

    TO ONESIDE :S :DIAG :LEVEL
    IF :LEVEL = 0 [ STOP ]
    ONESIDE :S :DIAG :LEVEL - 1
    RIGHT 45 FORWARD :DIAG RIGHT 45
    ONESIDE :S :DIAG :LEVEL - 1
    LEFT 90 FORWARD :S LEFT 90
    ONESIDE :S :DIAG :LEVEL - 1
    RIGHT 45 FORWARD :DIAG RIGHT 45
    ONESIDE :S :DIAG :LEVEL - 1
    END

    TO SIERP :S :LEVEL
    :DIAG = :S / 1.414
    REPEAT 4 [ ONESIDE :S :DIAG :LEVEL CORNER :DIAG ]
    END

    CS
    HT
    PU HOME RT 90 BK 100 LT 90 BK 100 PD
    SIERP 10 4
    FILL

    #CreativeCoding #pattern #Sierpinski #fractal #Logo #TurtleGraphics #LibreOffice #LibreLogo #geometry #CreativeCode #procedural #CreativeCodeArt

  4. 🤔 Ah, the #nostalgia of #1980s bit-fiddling meets #Sierpiński #triangles in a convoluted, caffeine-induced fever dream! 👾 Who knew that #C #language devotees still cling to these ancient rites, conjuring up #code #optimization hacks that do more to befuddle than optimize? 🧐 Truly, the pinnacle of #programming enlightenment! 😂
    lcamtuf.substack.com/p/sierpin #HackerNews #ngated

  5. Never a Dull Enzyme schaechter.asmblog.org/schaech @STCmicrobeblog

    Emergence of fractal geometries in the #evolution of a metabolic enzyme: Franziska Sendker et al. nature.com/articles/s41586-024

    "Citrate synthase from S. elongatus has the peculiar capacity to self-assemble into a type of #fractal shape known as a #Sierpiński triangle. This is not a universal feature of citrate synthases, there's something unique about the one from this #cyanobacterium."

    #bacteria #microbes #cyanobacteria #fractals

  6. Eine unscheinbare Änderung an einer Formel eröffnet den Weg zu neuen Objekten der fraktalen Geometrie.
    Mathematische Unterhaltungen: Mandelpinskis
  7. Eine unscheinbare Änderung an einer Formel eröffnet den Weg zu neuen Objekten der fraktalen Geometrie.
    Mathematische Unterhaltungen: Mandelpinskis
  8. Eine unscheinbare Änderung an einer Formel eröffnet den Weg zu neuen Objekten der fraktalen Geometrie.
    Mathematische Unterhaltungen: Mandelpinskis
  9. Eine unscheinbare Änderung an einer Formel eröffnet den Weg zu neuen Objekten der fraktalen Geometrie.
    Mathematische Unterhaltungen: Mandelpinskis