▲ 59 r/artandcode+3 crossposts

I added fading trails, multi-color symmetry, and keyboard curves to my p5.js mandala tool

Part 2 of my mandala drawing series is out!

This time I expanded the project from Part 1 by adding:

  • fading trails that gradually disappear
  • independent colors for each symmetry line
  • a keyboard mode for drawing smooth curves

The tutorial explains how each feature works and includes the full source code.

I'd love to hear what other features you'd add next :)

https://alexcodesart.com/drawing-a-mandala-with-p5-js-smooth-lines-speed-based-thickness-tweakpane-part-1-2/

u/alex-codes-art — 2 days ago

I wrote a beginner-friendly guide to drawing mandalas in p5.js

Hello friends!

I just published a new p5.js tutorial where we build an interactive mandala drawing tool from scratch.

Along the way, we cover:
• Radial symmetry and coordinate transformations
• Smooth line rendering
• Speed-based brush thickness (faster strokes = thicker lines)
• Interactive controls with Tweakpane

The tutorial is aimed at beginners and intermediate creative coders, and every concept is explained step by step with code examples.

Article:
https://alexcodesart.com/drawing-a-mandala-with-p5-js-smooth-lines-speed-based-thickness-tweakpane-part-1/

Feedback is always welcome. Happy coding!

https://preview.redd.it/vgu997p7ss7h1.png?width=3360&format=png&auto=webp&s=35146eee324b2ec1dc2c9d774ed4c34dfe6fad2d

reddit.com
u/alex-codes-art — 19 days ago
▲ 10 r/p5js

I wrote a beginner-friendly guide to drawing mandalas in p5.js

https://preview.redd.it/1pu25ogdss7h1.png?width=3360&format=png&auto=webp&s=277417553a151a9f04b3a2d03ca40c6111fdaed8

Hello friends!

I just published a new p5.js tutorial where we build an interactive mandala drawing tool from scratch.

Along the way, we cover:
• Radial symmetry and coordinate transformations
• Smooth line rendering
• Speed-based brush thickness (faster strokes = thicker lines)
• Interactive controls with Tweakpane

The tutorial is aimed at beginners and intermediate creative coders, and every concept is explained step by step with code examples.

Article:
https://alexcodesart.com/drawing-a-mandala-with-p5-js-smooth-lines-speed-based-thickness-tweakpane-part-1/

Feedback is always welcome. Happy coding!

reddit.com
u/alex-codes-art — 19 days ago
▲ 49 r/p5js+1 crossposts

Hello friends! I just published a new creative coding tutorial about L-systems and p5.js.

In the article, we start with a tiny text rule, expand it over several iterations, and then use turtle graphics to turn that generated string into branching fractal drawings. We go step by step through the core ideas: axioms, rewrite rules, iterations, turtle movement, canvas scaling, and drawing the final result with p5.js.

If you’re curious about generative art, fractals, or rule-based drawing systems, I think you’ll enjoy this one.

Article link: https://alexcodesart.com/drawing-fractals-with-l-systems-in-p5-js-a-creative-coding-tutorial/

Happy coding!

u/alex-codes-art — 10 days ago