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.
This iteration has been a big challenge: Generate shapes, get their concave hull, pack those hulls, calculate the transformation matrices mapping the original hulls to the packed ones. Apply those transformation matrices to the original shapes. Finally play with a 2D camera to find the right shot.
And I still have an interesting rounding bug which doesn't fit in this description :)
In this iteration I highlight two contours per shape, and bend the contours slightly.
See the alt text for more details.
Ok, I added two more lines of code to rotate the shapes aligning their longest segment to the horizon.
Now I can go sleep :)
Playing with https://github.com/micycle1/PGS inside #OPENRNDR
I feel a bit guilty that this is just 4 lines of code But I still like those shapes a lot and want to send them to the #penplotter
Not long after one of the big bangs.
Working on a new artwork.
The list of things to try is long
"What happens if pi=4?"
If PI was 4.0 then colorizing its digits would be rather pointless.
Code: https://codeberg.org/hamoid/genuary2025/src/branch/main/src/main/kotlin/Genuary17.kt
"Generative palette."
Code: https://codeberg.org/hamoid/genuary2025/src/branch/main/src/main/kotlin/Genuary16.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
#genuary #genuary11 #genuary2025 #CreativeCoding #OPENRNDR #Kotlin #glitch ~
"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
"Isometric Art (No vanishing points)."
I think the hardest part of these for me is to stop. To accept something I know could be better. I could work on each prompt for weeks and months XD
Code: https://codeberg.org/hamoid/genuary2025/src/branch/main/src/main/kotlin/Genuary05.kt
"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.