Free L-System Sierpinski Triangle & Chaos Game Visualizer—
gemini-3.0-flash
Visualize fractals instantly with this free web-based L-System and Chaos Game simulator. Create Sierpinski triangles and geometric patterns in your browser.
What This App Does
Visualize fractals instantly with this free web-based L-System and Chaos Game simulator. Create Sierpinski triangles and geometric patterns in your browser. — generated by gemini-3.0-flash and published by @Akhenaten on Slopstore. Categorized under Education, this app is part of Slopstore's curated collection of AI-generated tools and experiments. Run it free in your browser. No installation needed.
AI Generation Prompt
Technical Specification: Fractal Geometry & Chaos Game Visualizer
Overview
This application is a high-performance, browser-based tool for rendering complex fractal geometries using Lindenmayer Systems (L-Systems) and the Chaos Game algorithm. The application focuses on real-time visual feedback, educational clarity, and a clean, high-contrast aesthetic suitable for classrooms, creative experimentation, and personal exploration.
Core Features
1. Fractal Engines
- L-System Generator: Users can input custom axioms, production rules, angle increments, and recursion depth to generate unique fractals.
- Chaos Game Simulator: Interactive mode allowing users to define polygon vertices (triangle, square, pentagon, etc.) and movement ratios (e.g., 0.5 for Sierpinski) to visualize emergent patterns.
2. Interactive Rendering Canvas
- Real-Time Preview: The canvas updates dynamically as parameters are adjusted.
- Zoom & Pan: Intuitive controls for inspecting fractal detail.
- Export: High-quality PNG download capability using HTML5 Canvas
toDataURL.
3. Preset Library
- A selection of ready-to-load patterns, including: Sierpinski Triangle, Koch Snowflake, Dragon Curve, and Hilbert Curve.
UI/UX Design
- Layout:
- Header: Minimal title and quick-action bar (Export, Share, Help).
- Sidebar (Left): Context-aware control panel for adjusting mathematical variables (Recursion Level, Angle, Rules, Vertex count).
- Main Area: Large, responsive HTML5 canvas for the render.
- Color Palette: Professional light-mode aesthetic.
- Background:
#F8FAFC(Cool Gray) - Primary Accent:
#2563EB(Vibrant Blue for interaction buttons) - Text:
#1E293B(Dark Slate) - Borders:
#E2E8F0(Subtle Gray)
- Background:
- Animations: Subtle transition effects on input sliders and toggle switches to ensure a tactile, responsive feel.
Technical Implementation Constraints
- Single File: All HTML, CSS, and JS must be within one file.
- No Frameworks: Vanilla JavaScript and HTML5 Canvas only.
- Sandboxing Compatibility:
- Do NOT use
localStorage,sessionStorage, or cookies. - All modals (about, settings) must be CSS-based overlays.
- No external pop-up or confirm dialogues.
- Do NOT use
- Performance: Ensure the loop is optimized; use
requestAnimationFramefor smooth updates.
Development Directives
- Use a standard CSS reset to ensure consistent font and layout across browsers.
- Ensure all UI elements are touch-target compliant for mobile accessibility.
- The application must initialize in a clean state with no persistent data loading.
- All external fonts or icons must be loaded via secure CDNs with
rel="stylesheet".
Spread the word
Files being used
Frequently Asked Questions
Everything you need to know about using this application.
How do L-Systems create fractal patterns?
L-Systems, or Lindenmayer systems, utilize a set of formal grammar rules to generate recursive strings. These strings define geometric instructions that a renderer translates into visual fractal structures. By applying simple production rules iteratively, complex and infinite self-similar patterns emerge. This method effectively models biological structures and geometric shapes like the Sierpinski Triangle.
What is the Chaos Game in fractal geometry?
The Chaos Game is a method of creating a fractal by starting with a polygon and a random starting point. You then repeatedly move a fraction of the distance towards a randomly selected vertex. This stochastic process, when repeated thousands of times, reveals a highly structured fractal pattern. It is a fascinating intersection of probability and geometry that demonstrates how order arises from randomness.
Can I save my generated fractal images?
Yes, the tool includes a high-resolution export feature that allows you to download your generated canvas as a PNG file. This ensures you can preserve your work without needing local storage integration. The export function bypasses browser limitations by rendering the canvas data directly to a downloadable blob, allowing for high-quality image saving compatible with all major browsers.
Is this tool mobile-friendly?
The application is built using responsive CSS techniques to ensure a seamless experience on smartphones, tablets, and desktop computers. The canvas automatically resizes to fit your device's screen without compromising rendering speed. Optimized for performance, the rendering engine runs efficiently on mobile hardware, providing interactive fractal exploration regardless of your device's processing power or form factor.
Related Applications

Free Drone Wind Speed & Crosswind Drift Calculator
Calculate drone flight adjustments with this free online wind speed and crosswind drift vector tool. Plan safe flight paths by determining ground speed quickly.

Free Kombucha Scoby Hotel Feeding Schedule Generator
Effortlessly manage your Kombucha Scoby hotel. Use our free feeding schedule generator to calculate tea and sugar ratios and track maintenance intervals easily.

Free Sourdough Starter Temperature vs Yeast Activity Calculator
Optimize your sourdough baking with our free online tool. Visualize how proofing box temperatures impact yeast activity, fermentation speed, and starter health.

Free EDI X12 Syntax Highlighter & Parser Tool
Easily visualize and parse complex EDI X12 files with our free syntax highlighter. Analyze ISA, GS, ST, and SE segments instantly with an intuitive web interface.
Discover more free AI apps on Slopstore — the community platform for hosting AI-generated web applications.