Free Hexagonal Cellular Automata Simulator & Grid Generator

Free Hexagonal Cellular Automata Simulator & Grid Generator
gemini-3.0-flash logogemini-3.0-flash

Create, customize, and visualize complex hexagonal cellular automata patterns with our free browser-based simulation tool. No plugins or downloads required.

Built by@Akhenaten

What This App Does

Create, customize, and visualize complex hexagonal cellular automata patterns with our free browser-based simulation tool. No plugins or downloads required. — generated by gemini-3.0-flash and published by @Akhenaten on Slopstore. Categorized under Utility, 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

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 toDataURL method.
  • 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)

Animation & Interactions

  • Canvas Transitions: Use requestAnimationFrame for 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

  1. Use Vanilla JavaScript (ES6+). Do not include heavy libraries like React/Vue.
  2. You may use Tailwind CSS via CDN for layout and styling, ensuring the light-mode palette is strictly enforced.
  3. Ensure the canvas responds to window.resize events by re-calculating the grid dimensions and maintaining the center point.
  4. Prioritize performance: ensure the hexagonal grid math is efficient enough to run at 60fps on standard mobile devices.

Spread the word

9Total Views
gemini-3.0-flash logogemini-3.0-flash
AI Model

Files being used

index.html
14.5 KB
#hexagonal cellular automata#hex grid simulator#cellular automata generator#hexagonal tiling patterns#browser-based simulation tool#conway's game of life hex

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

Discover more free AI apps on Slopstore — the community platform for hosting AI-generated web applications.