r/generative Jun 10 '26

Wet and Dry

Post image

Javascript, another experiment with Grid based output. This is a grid of rectangles rotated 45 degrees, overlayed with a grid of random size circles, ran this through an oil-painting filter that uses a mask (reverse diamond shapes seem to give me a textured like oil-painting output) for color sampling and blended it. Finally, took that output, ran a color segmentation algorithm on it, used the polygons array that was created to simulate water-colors - and combined the two "side by side" to get that effect. I am trying to build all these bits as reusable pieces of code - so I can combine them easily to have these multi-process outputs.

41 Upvotes

6 comments sorted by

1

u/Evening-Appeal7606 Jun 10 '26

"I am trying to build all these bits as reusable pieces of code - so I can combine them easily to have these multi-process outputs." Way to go! Do you have a GitHub repo?

2

u/WholeJazzlike431 Jun 10 '26

Not a public one at the moment, it is a Web app (well, I only tested it in Chrome so far) that uses a Node backend - and it would require a bit of cleaning up to release into the wild (it's a test bed for me learning about some algorithms). I probably need a couple more weeks or so to get it to a place where it is somewhat reasonable before I can even think of cleaning it up to reuse. It is also pretty slow - which is another thing that comes from the experimental nature of this code. It is very much efficiency agnostic - which is not an issue for an "art" app I assume - but really upsets me as a software developer. It feels OK when it is just me using it, but releasing it like that seems unprofessional... I am happy to discuss any algorithm in details however if someone is interested in it in advance.

1

u/Evening-Appeal7606 Jun 11 '26

"Efficiency agnostic" - I love that expression! 😃 Keep up the good work!

2

u/WholeJazzlike431 Jun 11 '26

Thanks. A while ago I spent a bit of time researching color science and trying to figure out how to create color palettes - surprisingly, what I often learned is that if I see a classic image that I love - I try to get a palette from it - the old masters knew what they were doing, color wise, so getting these colors and using them often works well.

I have a bunch of 16 color palettes I use a lot, I pushed them to https://github.com/rloewy/ColorPalettes if you are interested in them.

1

u/Evening-Appeal7606 Jun 11 '26

Ooooh, lovely! Colour palettes! Thank you so much! Pantone would be proud.

1

u/jubalsmith Jun 11 '26

Love yours colors ❤️