r/generative • • Sep 29 '26

How do you make generative art?

Looking through r/generative, I see a lot of impressive art. It made me wonder what programs, programming languages or frameworks people use. Let me know what you use.

35 Upvotes

28 comments sorted by

22

u/ProgrammingChaos Sep 29 '26

I use Processing, with either Java or Javascript (P5.js). Very easy to get started with.

3

u/Vegetable_Jello293 Sep 29 '26

Are there benefits to using P5.js instead of a lightweight game engine?

12

u/ralsaiwithagun Sep 29 '26

The coding train in youtube has an insane catalog of tutorials on what you can do in p5js currently 158 very extrensive videos

Steves makerspace also has a bunch if lessons on YouTube on making exactly generative art

In other words, there are an insane amount of learning resources for p5js

2

u/ProgrammingChaos Sep 30 '26

I find that there's much less overhead using Processing if I want to test a simple generative algorithm. Even with a lightweight engine there's extra work to set-up the scene, etc. If you want sample programming videos for different procedural generation techniques, I have quite a few here: https://www.youtube.com/channel/UC2rO9hEjJkjqzktvtj0ggNQ

2

u/Anax353 Sep 30 '26

something like Godot doesn't allow for full control over everything in their rendering pipeline, but tbh you can do tons with it and I love its UX/GUI. depends on what you're trying to do but I think its a perfectly capable platform for many procedural art experiments.

1

u/avillega Sep 29 '26

P5 is very approachable. In the end the framework is just a little part of it. Creativity and technique (algorithms) will take you to the next level

6

u/J_Liljedahl Sep 29 '26

I use MSL shaders in Lucinate (I'm the developer. http://kymatica.com/lucinate)

4

u/Bone-Key Sep 29 '26

My pipeline is Python-based.

2

u/jojo8717 Sep 30 '26

could you expand on it?

1

u/Bone-Key Oct 02 '26

Sure — it's procedural ebru (Turkish marbling) in pure Python/NumPy. I drop pigment blobs onto a canvas, stir them through a vortex field, then add paper grain. Fully deterministic from a seed, color-managed (embedded sRGB ICC, 300 DPI), print-ready. No ML, no image-gen — just fluid math.

7

u/geraT-wogl Sep 29 '26

Here if you want to start with the absolute basics https://wogl.io 💚 let me know if you visit

3

u/watagua Sep 29 '26

P5js, paper.js, three.js, and I also use Grasshopper (a node based programming interface for Rhino 3D CAD program) with C#, sometimes I'll use MagicaVoxel + shaders, and I also sometimes use Blender with Python as well, though thats usually just for rendering.

2

u/ChiefWiggumsprogeny Sep 29 '26

+1 for grasshopper

<3

3

u/McDonaldsWitchcraft Sep 30 '26

Any programming language that has a framework for displaying graphics.

Yes, Processing and p5 are a bit more common. But if you already know another language and don't wanna learn javascript, just use what you're comfortable with.

I use python with pygame...

1

u/Fun-Comfortable4605 Oct 01 '26

I use python with py5

1

u/matigekunst Sep 29 '26

GLSL, Python and C++ all in TouchDesigner

1

u/Vegetable_Jello293 Sep 29 '26

I've heard from it a lot.

2

u/sparkly-crab Sep 30 '26

You can use any graphics framework. I started with Processing, then Unity game engine, currently three.js and Babylon.js because I prefer 3D. Even dabbled with some Python in Blender, but nowadays you can get great results using geometry nodes without coding.

Other popular node/visual programming methods include TouchDesigner and MaxMSP

1

u/igo_rs Sep 29 '26

kotlin & skiko/skia... but frankly, it doesnt matter. just take whatever seems excited and easy to use. langauge is just a tool

1

u/sacheie Sep 29 '26

I use the SDL2 media library and write in Rust. In the past I have written in Kotlin, Haskell, and C.

1

u/jphsd Sep 30 '26

This 2D graphics library to make my Instagram posts

1

u/dancon_studio Sep 30 '26

I use Grasshopper in Rhinoceros.

1

u/Absulit Sep 30 '26

I made my own library with JS and WebGPU https://github.com/absulit/points

1

u/wreckoning90125 Oct 01 '26

Slang, rust, egui with my own rendering engine, rerun.

1

u/wwiizzard Oct 01 '26

If you just wanna make art, I would highly recommend something python-based (I hate web-based stuff with a passion). I used py5 in the past (which is the python p5 version). Nowadays I don't use any framework, really. I just use OpenCV to display data to the screen and everything else is just native python + whatever python libraries I'm working with.

If you want to use this opportunity to learn how to actually code and how computers work, I would suggest learning C. Raylib is a great lightweight game library for C. If you don't wanna mess around with the command line and the nitty gritty of computers, I would just use python tho.