Free Hexagonal Cellular Automata Simulator & Grid Generator—
gemini-3.0-flash
Create, customize, and visualize complex hexagonal cellular automata patterns with our free browser-based simulation tool. No plugins or downloads required.
AI Generation Prompt
Hexagonal Cellular Automata Simulator
Overview
A high-performance, single-file browser application designed to simulate hexagonal cellular automata. The tool provides a clean, professional workspace where users can visualize complex grid-based logic.
Technical Constraints
- Single File: Everything (HTML, CSS, JS) must be contained in one file.
- No Persistence: Do not use
localStorage,sessionStorage, or IndexedDB. All simulation state must reside in memory. - No Alerts/Prompts: Use custom modals for interactions.
- Environment: Must run seamlessly inside a sandboxed iframe.
Feature Set
- Hex Grid Engine: Optimized rendering using HTML5 Canvas with a hexagonal tiling coordinate system (axial/cube coordinates).
- Rule Editor: A customizable panel to define 'Birth' and 'Survival' neighborhood thresholds.
- Playback Controls: Play, Pause, Step-Forward, and Reset buttons.
- Simulation Speed: Slider for adjusting the simulation refresh rate.
- Interactive Grid: Ability to draw/erase cells directly on the canvas using mouse or touch gestures.
- Export: Save the current frame as a PNG image using the
toDataURLmethod. - Preset Library: A dropdown of classic rule configurations (e.g., 'Life', 'Growth', 'Chaos').
UI/UX Layout
- Header: Contains the application title and a minimal, clean toolbar for global actions (Clear, Export, Randomize).
- Main Display: A centered, fluid canvas container. The background must be a pristine, light-mode white (
#ffffff). - Sidebar/Control Panel: A right-aligned (or bottom on mobile) clean control panel using a semi-transparent blur effect.
- Input groups for rules, speed, and grid density.
- Grouping via semantic
<section>tags.
- Color Palette:
- Background:
#f8fafc(slate-50) - UI Surface:
#ffffff - Accents/Buttons:
#3b82f6(blue-500) - Border/Grid:
#e2e8f0(slate-200) - Text:
#1e293b(slate-800)
- Background:
Animation & Interactions
- Canvas Transitions: Use
requestAnimationFramefor buttery-smooth grid updates. - Micro-interactions: Buttons should have subtle scale transformations on click and smooth color transitions on hover.
- Loading: Subtle loading indicator (spinner) if the initial generation takes > 100ms.
Developer Instructions
- Use Vanilla JavaScript (ES6+). Do not include heavy libraries like React/Vue.
- You may use Tailwind CSS via CDN for layout and styling, ensuring the light-mode palette is strictly enforced.
- Ensure the canvas responds to
window.resizeevents by re-calculating the grid dimensions and maintaining the center point. - Prioritize performance: ensure the hexagonal grid math is efficient enough to run at 60fps on standard mobile devices.
Spread the word
Files being used
Frequently Asked Questions
Everything you need to know about using this application.
What is a hexagonal cellular automata simulator?
A hexagonal cellular automata simulator is a digital tool that visualizes discrete mathematical models where a grid of hexagonal cells evolves over time based on a set of predefined rules. Unlike traditional square grids, hexagonal grids offer unique geometric properties and connectivity, resulting in more organic and complex movement patterns that are fascinating to observe. This simulator allows users to interact with the grid, toggle cell states, and observe how simple rules applied to individual cells translate into intricate, self-organizing behaviors across the entire hexagonal surface. It serves as an excellent resource for exploring emergent systems and computational biology concepts directly in your browser.
How do I customize the simulation rules?
You can customize the simulation behavior through the settings panel, which allows you to define the 'Birth' and 'Survival' conditions for the cells. By adjusting these values, you can alter the frequency at which cells appear or vanish, leading to wildly different aesthetic outcomes and animation speeds. The controls provide instant visual feedback as you modify parameters. Whether you want to create chaotic, noise-like patterns or structured, crystalline growth, the real-time rule editor lets you experiment effortlessly without needing any programming knowledge.
Is this simulation tool compatible with mobile devices?
Yes, this tool is designed with a responsive, mobile-first approach, ensuring that the canvas adapts to different screen sizes, from tablets to desktop monitors. You can comfortably interact with the hexagonal grid, adjust settings, and watch the simulation run on any modern touch-enabled device. While complex simulations can be resource-intensive, we utilize optimized rendering techniques to ensure smooth performance across mobile browsers. You can easily switch between settings and interact with the grid on the go without sacrificing the fluidity of the animation.
Can I save my simulation state or patterns?
Since this is a client-side application designed with privacy and performance in mind, we do not use browser storage like localStorage or cookies. Therefore, simulation states are kept in memory and will reset if you refresh the browser page. To preserve your work, we have included an 'Export Snapshot' feature that allows you to download the current state of your grid as a high-quality image file. This allows you to capture and share your favorite patterns or designs without the need for server-side persistence or local data tracking.
Related Applications

Free Event Venue Capacity Calculator & Floor Plan Planner
Instantly calculate event venue capacity based on total square footage. Plan safe seating layouts for banquets, theater, and standing events with our free tool.

Free Oboe & Bassoon Reed Scraping Thickness Profile Visualizer
Accurately visualize and analyze your oboe or bassoon reed scraping profile. A free, browser-based tool to map reed thickness and optimize your woodwind sound.

Free Rucking Weight Distribution Calculator & Ergonomics Tool
Calculate the ideal weight distribution between hip belts and shoulder straps for rucking. Improve ergonomics, prevent back pain, and optimize load carriage.

Free LED Grow Light PPFD Map Footprint Generator Tool
Create accurate LED grow light PPFD footprint maps. Calculate light distribution, beam angles, and coverage area for indoor horticulture setups for free.
Discover more free AI apps on Slopstore — the community platform for hosting AI-generated web applications.