I recently discovered that code can be used to create visual art, animations, interactive sketches, and even physical installations. I'm curious about the skills and tools beginners should learn before going deeper. What languages, libraries, or beginner projects would you recommend for someone who wants to explore programming as a form of artistic expression?
4 Answers
A good way to think about creative coding is to choose something you want to see and then work backward toward making it happen. Try recreating a simple poster, particle effect, geometric animation, or interactive pattern. The project gives you a reason to learn programming concepts instead of studying everything in advance.
p5.js is a very approachable place to begin, especially because you can use it directly in a web editor without setting up much. Start with one shape, then experiment with mouse position, time, colors, and motion. You don’t need advanced math right away—learn each concept as you need it, and save your sketches so you can compare how small changes affect the result.
Creative coding can use almost any language with a graphics library, but p5.js is a particularly low-friction option. You can also explore browser-based SVG generation, where your program creates drawings and illustrations as vector documents.
You can expand beyond the screen too. Microcontrollers such as Arduino can drive addressable LEDs for light sculptures, panels, and installations. That involves some electronics as well as programming, but it’s a fun direction once you want your code to control something physical.

The Coding Train has beginner-friendly videos that demonstrate this style of experimentation. I hadn’t come across it before, but it seems like a useful starting point.