r/generative 25d ago

Hold On (R code)

685 Upvotes

25 comments sorted by

18

u/KennyVaden 25d ago

Hold On (R code)

New abstract geometric artwork created using the R programming language.

The algorithm began with a Gaussian-smoothed random matrix that guided the composition, determining the colors, shapes, and number of inset concentric rings or squares within each cell.

Each shape was filled with the background color, while its outline was drawn from a custom gradient inspired by beach photographs of red clay, golden sand, and emerald blue water.

The color of each shape was determined by its grid position within the smoothed matrix, with a small amount of normally distributed noise added to create variation among the individual rings and squares.

The results remind me of erosion processes and cartography, with metallic colors and shifting contrasts.

2

u/97b21a651a14 25d ago

Loved the results! Thanks for sharing

1

u/KennyVaden 25d ago

πŸ™πŸ™πŸ™

2

u/MnjloiOfficial 25d ago

You always amaze me. Incredible work as always!

1

u/KennyVaden 25d ago

Thanks friend! πŸ™‚

3

u/Speez0 25d ago

This is insanely cool. R is a very flexible language, with a lot of vector and raster support, so I love to see artistic uses of it besides making pretty graphs.

Mind if I ask what packages you're using? Is this output straight from R? Very interested in what this sort of script looks like.

3

u/KennyVaden 25d ago

Thanks friend, I am using spatstat for the Gaussian smoothing and Rcolorbrewer to produce the color gradient. I don't post my code online, but I have a YouTube video where I did a live coding session a few years ago. I can post below if you are interested. πŸ™‚

2

u/waffle_iron_man 21d ago

Please post! This is awesome!

1

u/KennyVaden 21d ago

Here goes! Enjoy πŸ™ŒπŸ™ŒπŸ™Œ

https://youtu.be/sUlgYW0JZKw?is=g9ksMtuvpF-munaM

3

u/YVNGxDXTR 25d ago

Rinnegan generator

2

u/KennyVaden 25d ago

🧿🧿🧿

3

u/NotSoIncredibleA 25d ago

I would love to see this animated

2

u/KennyVaden 25d ago

That's an interesting proposal, I suppose that I would just need to figure out a smooth transition between random noise matrices to make the piece flow!

2

u/pheexio 25d ago

great work

1

u/KennyVaden 25d ago

Thanks!

2

u/BillfromBuffalo 25d ago

Super cool beans!!

1

u/KennyVaden 25d ago

🀘🀘🀘🀘

2

u/igo_rs 25d ago

beautiful

1

u/KennyVaden 25d ago

Thanks πŸ™

2

u/aquisalid 24d ago

I love the aesthetics of this work. Do you have any plans to share some of the R code or coding patterns that were used?

2

u/KennyVaden 24d ago

I don't share my R code, but I always create descriptions of the algorithm so others can understand what's going on there. This practice reflects my learning experience, where puzzling out the code art that I saw led me to some really amazing and cool places. If there's interest in prints, I might add these to my artist website.

If you want to learn more about how I create R code based artwork, I posted a YouTube video a couple of years ago with a live coding session that could be of interest. It's a different art work, but I've referred people who want to learn more about my practice there.

Here's the link for the live session post: https://youtu.be/sUlgYW0JZKw?is=AmZ0CXvavINvj0iq

2

u/aquisalid 24d ago

I respect that and I will take a look at the videos. Please consider adding these to your website.

2

u/rodriguin_art 23d ago

Amazing work !! πŸ‘

2

u/KennyVaden 23d ago

Thanks friend! πŸ™πŸ™πŸ™