explaingit

bobvanluijt/chaos-game

Analysis updated 2026-07-18 · repo last pushed 2018-01-27

HTMLAudience · generalComplexity · 1/5DormantSetup · easy

TLDR

An interactive browser demo of the Chaos Game, where repeatedly jumping halfway toward a random triangle corner reveals the Sierpinski triangle fractal in real time.

Mindmap

mindmap
  root((repo))
    What it does
      Random point jumps
      Draws fractal live
      Runs in browser
    Tech stack
      HTML
      JavaScript
    Use cases
      Explore fractals
      Visual math demo
      Generative art
    Audience
      Math learners
      Curious explorers
      Educators

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Watch the Sierpinski triangle fractal emerge from simple random rules in real time.

USE CASE 2

Use as a hands-on teaching demo to show how order can arise from randomness.

USE CASE 3

Experiment with generative art by tweaking the polygon and jump rules.

What is it built with?

HTMLJavaScript

How does it compare?

bobvanluijt/chaos-game100/rutgers-pbl-dining-2015a15n/a15n_old
LanguageHTMLHTMLHTML
Last pushed2018-01-272015-12-012016-06-18
MaintenanceDormantDormantDormant
Setup difficultyeasyeasyeasy
Complexity1/51/51/5
Audiencegeneralgeneralgeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Runs directly in the browser via the live demo link, no install needed.

Copy-paste prompts

Prompt 1
Explain how the Chaos Game's random-jump rule produces the Sierpinski triangle.
Prompt 2
Help me modify this Chaos Game demo to use a square instead of a triangle.
Prompt 3
Show me how to add color variation to the points drawn in this Chaos Game demo.
Prompt 4
Walk me through the JavaScript code that animates the fractal in this project.

Frequently asked questions

What is chaos-game?

An interactive browser demo of the Chaos Game, where repeatedly jumping halfway toward a random triangle corner reveals the Sierpinski triangle fractal in real time.

What language is chaos-game written in?

Mainly HTML. The stack also includes HTML, JavaScript.

Is chaos-game actively maintained?

Dormant — no commits in 2+ years (last push 2018-01-27).

How hard is chaos-game to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is chaos-game for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.