News for hackers. Stuff that matters.
Re:Genuary 2022: Generative Code Art Prompts for a Month by ubavic on Monday January 03, 2022 @08:35AM (#29780621)
I always wanted to start with generative art and this seems like a perfect starting place.

Question for people that already do generative art: what library (framework) do you recommend? I know a little bit about GLSL but I know it is limiting in some cases

Re:Genuary 2022: Generative Code Art Prompts for a Month by logicalshift on Monday January 03, 2022 @10:48AM (#29781907)
If Rust's your language, I wrote a library that should be pretty good at 2D things: https://github.com/logicalshift/flo_draw - I wrote it while working on another project (FlowBetween) where I found debugging would be easier if I could just render something on-screen but rendering stuff on screen always required a ridiculous amount of setup.

It has some nice options for feeding its own output back into itself as it uses streams rather than callbacks so it's quite good for procedural rendering type tasks (the 'Wibble' example is a good place to start with that)

Re:Genuary 2022: Generative Code Art Prompts for a Month by scyclow on Monday January 03, 2022 @09:24AM (#29781038)
p5 is great! Very easy to learn and has an amazing online editor to get you started immediately. Such a good tool for prototyping ideas quickly.

https://editor.p5js.org/

Re:Genuary 2022: Generative Code Art Prompts for a Month by twox2 on Monday January 03, 2022 @09:53AM (#29781329)
I second p5js. Try Dan Shifman's "The Coding Train" videos on youtube.
Re:Genuary 2022: Generative Code Art Prompts for a Month by iszomer on Monday January 03, 2022 @02:59PM (#29785781)
I third recommend p5js. If you're looking for more different flavors, try the Awesome Creative Coding page on github to get your bearings.

- https://github.com/terkelg/awesome-creative-coding

Re:Genuary 2022: Generative Code Art Prompts for a Month by hrnnnnnn on Monday January 03, 2022 @08:43AM (#29780685)
If you'd rather do visual programming than code, blender is a great choice. You can do generative 2D using the shader node editor, or 3D with the new geometry nodes.

For a code-based approach, I spent the weekend trying different permutations of Processing and settled on writing p5.js in VSCode. It's easy to set up, you can use vim bindings, and you can copy+paste your code into openprocessing.org if you want to share it (if it's interactive, for example).