Show HN: Write generative fine art in Rust
paytonturnage.gitbook.io
paytonturnage.gitbook.io
I wrote this because writing generative art for print has unique problems that I found myself solving over and over again in standard graphics packages.
For example, a general purpose graphics library should probably compile shaders ahead of time, since compiling them at runtime is slow. When writing art, I want to see them update as I change them so I can brainstorm.
Source code is here: https://github.com/turnage/valora
Features
* Repeatable works at arbitrary resolutions without changing the work
* Type-checked color space management with https://docs.rs/palette
* Managed rngs for repeatable works and controlled rng trees
* Support for using a different, custom GLSL shader for each vector path
* GLSL live coding with "#include" support
* An ergonomic derive-based GLSL uniforms interface
* Animation support for brainstorming and cumulative pieces
Here is a shader written with this: https://www.instagram.com/p/Bh4iIbwgjom/
Here is a vector work written with this: https://www.instagram.com/p/B6wN_sSHtYp/
I've been wondering where are the non-destructive painting programs, which does not rasterize organic brushes or strokes.
Your attempt could work as a base to build one if it can work realtime sufficiently fast.
BTW following the link to your site in your Instagram profile leads to an HTTPS error.
Do you think it could be suited to do "glitch art" on existing images? I've done things like that in Rust in the past using completely handwritten GL code, for instance: https://axellemanfrini.com/media/Editorial/281115_4_GlitchPl... but it's always a bit cumbersome to reinvent the wheel. Just having shaders auto-reload would be a big time saver actually.
I'm probably more intrigued by a lot of the writing on your site and links to more generative art resources, as Rust isn't something I've spent really any time looking at.
1: Crystalline lines grow on a computational substrate. A simple perpendicular growth rule creates intricate city-like structures.
https://duckduckgo.com/?q=xscreensaver+substrate&iax=images&...
I assume that's not the case at all. Are you familiar with nodebox, and can you explain why someone who uses it might want to switch to this?
After all, HN has a focus on technology and programming. So it seems somewhat natural that readers here will be interested in the technology and programming language of a project.