I recently discovered that code can be used to create visual art, animations, interactive designs, and even physical installations. I'm curious about the best way to begin. What programming concepts, tools, or creative coding libraries should a beginner learn first, and what kinds of small projects are good starting points? I'd also appreciate advice from people who have explored coding as an artistic medium.
4 Answers
Creative coding can also extend beyond the screen. Microcontrollers such as Arduino can control addressable LEDs, allowing you to build light panels, installations, and animated displays. That involves some electronics as well as programming, but it’s a fun direction if you want your code to produce something physical.
p5.js is a really approachable place to start, especially because you can use its browser-based editor without setting up much. Begin with one shape, then make it respond to things like the mouse position or frame count. You don’t need to learn all the math beforehand—pick up the concepts as you need them for each effect. Saving each experiment makes it easier to compare changes, and after a few sketches you can try recreating a simple poster or particle animation.
A good way to think about creative coding is to start with a question: what can this computer do, and how far can I push it? Try making something simple, then experiment with geometry, perspective, color, animation, or unexpected rules. You don’t need an ambitious technical project—dream up a visual idea and gradually work out how to express it through code.
You can use almost any language with a graphics library, but p5.js is particularly beginner-friendly. There are also excellent guided video lessons available from creators who build sketches step by step. Focus on making small experiments rather than trying to master an entire programming language first.

Thanks, I hadn’t heard of that before. The browser editor sounds like exactly the kind of low-pressure starting point I need.