For Students · L-System Fractals
L-System Fractals for a k-means cluster
Built for students learning it for a class or exam. See the concept move instead of memorizing formulas — and check your homework intuition. Simulate a k-means cluster live below — adjust the inputs and watch it respond, right in your browser.
L-System FractalsLive
turtle graphics · rewriting rules
Controls
Presets
A Lindenmayer system grows a string by rewriting each symbol with a rule, then reads it as turtle commands: F draw, +/− turn, [ ] push/pop. Simple rules, botanical complexity.
Reading this result: After 5 rewrites the string holds 0 symbols — each pass replaces every symbol at once, so detail multiplies exponentially, not linearly.
Data Inspector
Angle25°
Symbols0
AxiomX
Governing equation
Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.
Also for:ResearchersEducatorsEngineersHobbyists & MakersK-12 StudentsFirst RespondersGeneral version →
More with L-System Fractals
L-System Fractals for a neural networkL-System Fractals for a sorting algorithmL-System Fractals for a search treeL-System Fractals for a hash tableL-System Fractals for a recommendation engineL-System Fractals for an image classifierL-System Fractals for a chatbotL-System Fractals for a pathfinding AI
Frequently asked questions
- Is this good for students?
- Yes — this version of "L-System Fractals for a k-means cluster" is framed for students learning it for a class or exam. See the concept move instead of memorizing formulas — and check your homework intuition.
- Do I need to install anything?
- No. It runs in any modern browser, free, with no account required.