The program no longer crashes and the fix was simpler than I thought.
Instead of comparing rounded doubles (what a silly idea) I did the proper thing, which is abs(a - b) < epsilon. A lot of times Takes maybe half second to generate the design. Then I can pan, zoom and rotate to find a screenshot I like.
I'm thinking that the lines that end in lonely places should end with a tiny knot. I may try that next.
"Generative Architecture."
Code: https://codeberg.org/hamoid/genuary2025/src/branch/main/src/main/kotlin/Genuary20.kt
#genuary2025 #genuary8 Day 8: "draw one million of something".
Here are some Clifford attractors with 40 million points per frame. made with #openRNDR
@pickover
"Impossible day - Try to do something that feels impossible for you to do."
I went for "less than one hour, less than 1000 chars". That's what I could afford today
Code: https://codeberg.org/hamoid/genuary2025/src/branch/main/src/main/kotlin/Genuary11.kt
"Draw one million of something."
A million static lines. Only a tiny part of each line is rendered (thanks to a #GLSL #shader). The part that is drawn is animated in a loop of 30 frames. A random time offset in each line-loop makes it very hard (impossible?) for us to notice the repetition.
Lets see how how much is left after video compression
Code: https://codeberg.org/hamoid/genuary2025/src/branch/main/src/main/kotlin/Genuary08.kt
"Exactly 42 lines of code."
Source code: https://codeberg.org/hamoid/genuary2025/src/branch/main/src/main/kotlin/Genuary03.kt
A program that reads its own source code and renders all characters as groups of colored rectangles.
It renders and distorts the render repeatedly to produce a video feedback effect.
I guess someone with a lot of patience could reconstruct the source code out of the image
"Layers upon layers upon layers"
Source code: https://codeberg.org/hamoid/genuary2025/src/branch/main/src/main/kotlin/Genuary02.kt
Inspired by the white plastic plate we have under our sprouting glass jars to collect water. The water is not perfectly transparent and leaves subtle wobbly contours on the plate. After more and more layers of subtractive tinted water, a beautiful painting is being revealed.
"Vertical or horizontal lines only"
Source code: https://codeberg.org/hamoid/genuary2025/src/branch/main/src/main/kotlin/Genuary01.kt
I run the program one by one on all my 12 month folders containing the 2024 photos. January definitely had not my favorite color combinations based on the results
Connecting the contours of the `w` and `~` characters with cubic bézier curves.
I didn't write any code in weeks and this is the first thing that came into my mind.
OPENRNDR Tutorial 001 - Getting started
https://tubedu.org/videos/watch/01dd5138-6204-4d61-bcf4-943ce7e96b8f
#SDF (Signed Distance Fields) are common in shaders, but they can also be used in the CPU to create 2D designs for a #penPlotter
Late evening experimentation with #OPENRNDR 's layer system ( https://guide.openrndr.org/ORX/compositor.html#compositing-using-orx-compositor ) #creativeCoding #mathart #bezier #kotlin
@WeavingWithAI Lets see how much is left after the double video compression