Skip to content

Examples ​

Examples of Charming, from generative art and simulations to visualizations, shaders and ASCII art. Each runs live on its page, above its source code. For bigger projects, see the gallery.

Generative

Generative art on Canvas: curves, noise and trails.

Visualization

Charts and mathematical figures.

Simulation

Vectors, forces and autonomous agents, after The Nature of Code.

Recursion

Fractals and trees, after The Nature of Code.

SVG & DOM

Data-driven SVG with the cm.svg template literal.

WebGL & Shaders

Batch rendering and shader art with the WebGL renderer.

Terminal

ASCII art with the terminal renderer.

With Other Libraries

Charming draws while another library computes: physics, shape morphing, sketchy rendering and sound.