All guides
📐

Math & Geometry Art

Mathematics is the hidden language of visual beauty. From the Fibonacci spiral in sunflowers to the fractal branching of trees, mathematical patterns appear everywhere in nature — and they make stunning art when rendered with code.

This guide covers the most beautiful mathematical techniques for generative art: fractals, sacred geometry, curve families, tessellations, and number theory visualizations. Each tutorial includes interactive code examples.

19 articles in this guide

01

Math Art: How to Create Beautiful Mathematical Patterns With Code

A hands-on guide to math art — how to turn mathematical formulas into stunning visual art using JavaScript. Covers spirals, tilings, Lissajous curves, rose curves, polar patterns, the golden ratio, and more, with working code examples you can run in your browser.

11 min readmath art · generative art · creative coding
02

Fractal Art: How to Create Infinite Mathematical Art With Code

A beginner's guide to fractal art — what fractals are, why they're beautiful, and how to generate Mandelbrot sets, Julia sets, recursive trees, and L-systems with simple JavaScript code you can run in your browser.

12 min readfractal art · generative art · creative coding
03

Fractal Tree: How to Create Beautiful Recursive Trees With Code

Learn to build stunning fractal trees from scratch with JavaScript and Canvas. 8 interactive examples: basic recursive tree, stochastic trees, L-system trees, wind animation, seasonal colors, 3D projection, interactive growing tree, and generative forest art.

24 min readfractal tree · recursion · creative coding
04

Fibonacci Spiral: How to Create Beautiful Golden Ratio Art With Code

Learn to create Fibonacci spirals, golden ratio patterns, and phyllotaxis art with JavaScript and Canvas. 8 interactive examples: golden spiral, Fibonacci sequence visualizer, phyllotaxis sunflower, golden rectangle subdivision, Fibonacci word fractal, spiral galaxy, golden angle tree, and generative Fibonacci art.

25 min readfibonacci spiral · golden ratio · phyllotaxis
05

Sacred Geometry: How to Create Mesmerizing Geometric Patterns With Code

Learn to build stunning sacred geometry patterns from scratch with JavaScript and Canvas. 8 interactive examples: Flower of Life, Metatron's Cube, Sri Yantra, Seed of Life animation, golden spiral mandala, Platonic solids projection, sacred tiling patterns, and generative sacred art.

22 min readsacred geometry · geometric art · creative coding
06

Mandala Art: How to Create Beautiful Symmetrical Patterns With Code

Learn to create stunning mandala art programmatically with JavaScript and Canvas. 8 interactive examples: basic mandala, dotwork mandala, petal mandala, animated rotating mandala, Islamic geometric mandala, fractal mandala, interactive mouse mandala, and generative mandala art.

21 min readmandala art · geometric art · creative coding
07

Geometric Art: How to Create Stunning Geometric Patterns With Code

A practical guide to geometric art with code — how to create mesmerizing geometric patterns using JavaScript and Canvas. Covers sacred geometry, Islamic patterns, Voronoi diagrams, kaleidoscopes, penrose tilings, and optical illusions, with working code examples.

12 min readgeometric art · generative art · creative coding
08

Tessellation Art: How to Create Mesmerizing Tiling Patterns With Code

Learn to create tessellation art with JavaScript and Canvas. 8 interactive examples: regular tilings, Escher-style transformations, Penrose tilings, hyperbolic tessellations, Voronoi cells, Islamic star patterns, aperiodic monotiles, and animated morphing tiles.

19 min readtessellation · tiling patterns · creative coding
09

Voronoi Diagram: How to Create Beautiful Organic Patterns With Code

Learn to create Voronoi diagrams, Delaunay triangulations, and organic cellular patterns with JavaScript and Canvas. 8 interactive examples: basic Voronoi, distance metrics, weighted Voronoi, Lloyd relaxation, Delaunay triangulation, mosaic filter, crystal growth simulation, and generative Voronoi art.

24 min readvoronoi diagram · delaunay triangulation · creative coding
10

Bézier Curves: How to Draw Beautiful Smooth Curves With Code

Learn to draw and animate Bézier curves with JavaScript and Canvas. 8 interactive examples: linear interpolation, quadratic curves, cubic curves, De Casteljau's algorithm, curve editors, spline paths, text on curves, and generative Bézier art.

20 min readbezier curve · curves · creative coding
11

Lissajous Curves: How to Create Mesmerizing Harmonic Patterns With Code

Learn to create and animate Lissajous curves with JavaScript and Canvas. 8 interactive examples: basic figures, frequency ratios, phase animation, 3D projections, harmonograph simulation, Lissajous knots, audio-reactive curves, and generative Lissajous art.

20 min readlissajous · curves · creative coding
12

Spirograph: How to Create Mesmerizing Spiral Patterns With Code

Learn to draw spirograph patterns with JavaScript and Canvas. 8 interactive examples: hypotrochoids, epitrochoids, multi-gear spirographs, rose curves, guilloché patterns, animated drawing, spirograph art generator, and interactive parameter explorer.

22 min readspirograph · spirograph art · creative coding
13

String Art: How to Create Beautiful Mathematical String Patterns With Code

Learn to create stunning string art programmatically with JavaScript and Canvas. 8 interactive examples: basic cardioid envelope, parabolic curves, circular string pattern, multi-layer design, epicycloid string figure, interactive string sculptor, 3D string surface, and generative string art composition.

23 min readstring art · string art patterns · creative coding
14

Kaleidoscope Art: How to Create Mesmerizing Symmetrical Patterns With Code

Learn to build interactive kaleidoscope patterns with JavaScript and Canvas. 8 working examples: basic reflection symmetry, hex kaleidoscope, image-based kaleidoscope, animated rotating kaleidoscope, interactive drawing kaleidoscope, triangular tiling, fractal kaleidoscope, and generative kaleidoscope art.

26 min readkaleidoscope · kaleidoscope art · kaleidoscope pattern
15

Moiré Patterns: How to Create Mesmerizing Interference Art With Code

Learn to create moiré patterns with JavaScript and Canvas. 8 interactive examples: line interference, concentric circles, rotational moiré, wave superposition, dot screen halftone, animated phase shift, interactive mouse moiré, and generative moiré art.

20 min readmoire pattern · moire effect · interference pattern
16

Op Art: How to Create Mesmerizing Optical Illusions With Code

Learn to create stunning op art and optical illusions programmatically with JavaScript and Canvas. 8 interactive examples: checkerboard warp, concentric pulse, moiré interference, rotating spiral, Fraser spiral illusion, Bridget Riley stripes, impossible cube, and generative op art composition.

22 min readop art · optical illusion · creative coding
17

Optical Illusion Art: How to Create Mind-Bending Visual Illusions With Code

Learn to create optical illusions with JavaScript and Canvas. 8 interactive examples: Checker Shadow illusion, impossible triangle, rotating snakes, Müller-Lyer arrows, Kanizsa triangle, Hermann grid, Café Wall illusion, and generative op art.

22 min readoptical illusion art · optical illusions · op art
18

Circle Packing: How to Create Beautiful Space-Filling Art With Code

Learn to build mesmerizing circle packing art with JavaScript and Canvas. 8 working examples: basic circle packing, image-based packing, recursive Apollonian gasket, organic growth simulation, text-filled circles, interactive packing, circle packing tree visualization, and generative circle packing art.

25 min readcircle packing · circle packing algorithm · generative art
19

Isometric Art: How to Create Stunning 3D-Looking Worlds With Code

Learn to build mesmerizing isometric art with JavaScript and Canvas. 8 working examples: isometric grid, cube renderer, voxel city, terrain heightmap, animated water, character sprites, interactive block editor, and generative isometric landscape.

26 min readisometric · isometric art · isometric drawing