Free Interactive Spirograph Pattern & Color Gradient Generator

Free Interactive Spirograph Pattern & Color Gradient Generator
gemini-3.0-flash logogemini-3.0-flash

Create custom spirograph patterns with advanced color gradient interpolation. This free web-based tool lets you generate, customize, and export geometric art.

Built by@Akhenaten

What This App Does

Create custom spirograph patterns with advanced color gradient interpolation. This free web-based tool lets you generate, customize, and export geometric art. — 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

Free Interactive Spirograph Pattern & Color Gradient Generator

A professional-grade, single-file browser application for generating complex geometric spirographs with dynamic color gradients.

Core Features

  • Real-time Rendering: Instant updates via requestAnimationFrame when changing pattern parameters.
  • Dynamic Parameter Controls: Sliders for Fixed Radius (R), Moving Radius (r), Drawing Offset (d), and Rotation Speed.
  • Advanced Gradient Engine: Define custom start and end colors with interpolation modes (RGB/HSL).
  • High-Resolution Export: Download functionality supporting PNG (raster) and SVG (vector) formats.
  • Performance Optimized: Uses OffscreenCanvas concepts (simulated) to ensure smooth interaction even with high-density point counts.

UI/UX Design Specification

  • Layout:
    • Left Sidebar: A persistent control panel with a clean white background, subtle drop shadows, and grouped input sections (Geometry, Color, Export).
    • Main Viewport: A central canvas area taking up 100% of the remaining width, allowing full-screen visualization of the pattern.
  • Aesthetics:
    • Palette: Clean, professional interface using #ffffff backgrounds, #1e293b for primary text, and #2563eb for active accent states.
    • Typography: Sans-serif, human-readable fonts (e.g., system UI stack).
    • Transitions: All UI components use smooth CSS transition: all 0.3s ease; for hover states and slider interactions.

Technical Implementation Constraints

  • Single File: All HTML, CSS, and JS must be contained in one file. No external bundling.
  • No Persistent Storage: No localStorage or cookies allowed. The state must be entirely transient.
  • Iframe Compatibility: Designed for sandbox="allow-scripts". No external calls that require cookies or storage persistence.
  • Performance: Ensure the canvas loop handles thousands of points without blocking the UI thread.
  • No Modals: Use custom HTML elements (overlay divs) for warnings or export dialogs instead of alert() or prompt().

Spread the word

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

Files being used

index.html
12.6 KB
#spirograph generator#geometric art maker#color gradient spirograph#interactive hypotrochoid plotter#free online pattern creator#parametric art generator#svg geometry tool

Frequently Asked Questions

Everything you need to know about using this application.

How does the spirograph color interpolation work?

This application utilizes linear interpolation (LERP) between two user-selected colors across the total path length of the spirograph. As the algorithm iterates through the drawing points, it calculates the progress percentage and blends the RGB or HSL values accordingly. This ensures a smooth transition of hues as the geometric lines overlap. You can adjust the start and end points of the gradient to create distinct visual effects, from subtle monochromatic shifts to high-contrast, multi-colored geometric masterpieces.

Can I save the geometric patterns I create?

Yes, the tool includes a built-in export feature that allows you to save your generated designs as high-resolution PNG images or scalable SVG files. Since this tool operates entirely in your browser memory, you must save your work before closing the tab. To export, simply use the 'Download' button in the control panel. This will trigger a file download directly to your local device, ensuring you retain your artwork without the need for server-side processing or account registration.

What mathematical models are used for these shapes?

The application is built on the mathematical equations for hypotrochoids and epitrochoids. These curves are generated by tracing the path of a point attached to a circle rolling inside or outside another circle. Users can manipulate parameters such as the fixed circle radius, the moving circle radius, and the distance of the drawing point from the center. These inputs are dynamically injected into the render loop to provide real-time updates as you slide the controls.

Is this tool compatible with all browsers?

This tool is designed to work in any modern browser that supports HTML5 Canvas and ECMAScript 6+ features. It is built as a single-file application, meaning it does not rely on external server-side databases or complex build pipelines. For the best performance, we recommend using the latest version of Chrome, Firefox, Edge, or Safari. The app is fully responsive and optimized for both desktop and tablet touchscreens, ensuring a fluid experience across all devices.

Related Applications

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