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
I minimal program that draws a circle then grows 150 distorted copies of it.
The core part of the program is about 10 lines of code.
Not long after one of the big bangs.
Working on a new artwork.
The list of things to try is long
Next iteration where child types depend only on iteration number. Two designs start in one location, the other two start in four locations.
#GenerativeArt #generative #CreativeCoding #OPENRNDR #Kotlin
#geometry #symmetry
Some kind of buggy symmetry which probably makes it more interesting than properly working symmetry
In this next iteration I thought of adding curved shapes. The trick is to filter out the curved segments of such shapes and only allow connecting on the straight ones.
See, the arc has two curves and two straight segments connecting those curves.
Does it happen to you that you should be doing something else, but you have an idea and don't want to wait to try it out? And then you immediately have the idea for the next step? XD
Added a simple rule so shapes have children of the same type. A bit more orderly.
I'm writing small programs for a presentation. Programs that are simple to write in one framework or language which would be not so simple to write in different ones.
I feel like printing, cutting and folding it to create a 3D shape, knowing that it would not produce a nice closed one
For 5 years we've been posting images and videos to this thread in the #OPENRNDR forum.
Maybe some day we can mark it as answered
Playing with the new `gradient { }` feature in orx-shade-styles.
Rendered with only 3 stacked rectangles featuring each a distorted 3-stop quantized linear gradient with the middle stop color being almost transparent (so lower layers are still visible).
Two post effects are applied for the dreamy effect: GaussianBloom and ColorCorrection.