Free Online Spirograph Pattern Generator & Color Interpolator

Free Online Spirograph Pattern Generator & Color Interpolator
gemini-3.0-flash logogemini-3.0-flash

Design complex spirograph geometric art with our free online generator. Customize mathematical parameters, apply smooth color gradients, and export your art.

Built by@Akhenaten

What This App Does

Design complex spirograph geometric art with our free online generator. Customize mathematical parameters, apply smooth color gradients, and export your 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

Spirograph Pattern Generator & Color Gradient Interpolator

Overview

A high-performance, single-file browser application designed to generate mathematically precise spirograph (hypotrochoid) patterns. This tool enables users to define custom mathematical parameters and apply beautiful, interpolated color gradients to the resulting lines.

Core Features

  • Parametric Controls: Fine-tune the fixed radius (R), moving radius (r), and pen offset (d).
  • Gradient Interpolator: Define custom color stops and blending modes to interpolate colors along the curve.
  • Real-time Rendering: Instant visualization on an HTML5 Canvas as parameters change.
  • Styling Options: Adjust stroke width, line opacity, and background color settings.
  • High-Res Export: Save the final render as a PNG image file.
  • Performance: Optimized requestAnimationFrame loop to ensure smooth interaction.

UI Layout

  • Header: A clean, minimal header displaying the tool name and an 'Export' button.
  • Sidebar (Left/Mobile-Top): A collapsable control panel housing:
    • Numerical inputs for R, r, and d.
    • Gradient color pickers (Start/End).
    • Sliders for line thickness, rotation count, and resolution.
  • Canvas Area (Main): The central area where the spirograph renders. It will feature a grid background toggle for alignment.
  • Empty State: A subtle "Adjust parameters to begin drawing" placeholder within the canvas.

Design System & Aesthetics

  • Color Palette: A professional "SaaS" light-mode palette using cool grays (#F8F9FA), soft whites (#FFFFFF), and an accent color of Indigo (#4F46E5).
  • Typography: Sans-serif, clean font (e.g., Inter or System UI).
  • Transitions: All UI elements (sliders, buttons) use 200ms ease-in-out transitions for hover and focus states.
  • Shadows: Soft, diffused box-shadows on the control panel to create depth against the light background.

Technical Specifications & Directives

  • Single File: All HTML, CSS, and JS must reside in one file. Use CDN links for any necessary libraries (e.g., Lucide Icons for UI elements).
  • No Storage Policy: The application MUST NOT use localStorage, sessionStorage, or cookies. Maintain all drawing state (parameters) in a plain JavaScript object within the global scope.
  • Sandboxed Environment: Avoid prompt(), alert(), or confirm(). All error messages or interactions must be handled via custom, in-DOM overlay modals.
  • Iframe Safe: Ensure all links (if any) have target="_blank" and rel="noopener noreferrer". Do not assume parent window access.
  • Responsive: The canvas must resize dynamically. If the screen is too small, collapse the sidebar into a bottom-drawer menu.
  • Code Structure: Use ES6 modules structure (or standard function blocks) to keep logic clean. Separate the 'Math Engine' (calculation) from the 'UI Controller' (DOM updates) and the 'Renderer' (Canvas operations).

Spread the word

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

Files being used

index.html
10.0 KB
#spirograph generator#color gradient interpolator#geometric art creator#mathematical pattern designer#free vector art generator#svg spirograph tool#hypotrochoid drawing tool

Frequently Asked Questions

Everything you need to know about using this application.

How does the spirograph geometric generator work?

This application utilizes parametric equations known as hypotrochoids to calculate the path of a circle rolling within or outside another circle. Users can input specific values for the fixed circle radius (R), the moving circle radius (r), and the distance of the pen from the center (d) to generate complex, repeating geometric patterns dynamically on the HTML5 canvas. The application translates these mathematical inputs into smooth, continuous line paths. By adjusting the 'rotations' and 'density' settings, you can define how many times the pen traces the loop and the resolution of the resulting geometric curve, providing full control over the visual complexity of the output.

What is color gradient interpolation in this context?

Color gradient interpolation is the process of calculating the transitional colors along the line path of the spirograph. Instead of using a single solid color, the application allows you to define a start color and an end color, then mathematically calculates the intermediate steps along the path of the curve to create a seamless visual flow. This feature enhances the aesthetic appeal of the geometric art by creating depth and movement. Users can adjust the gradient intensity, the direction of the color shift, and the blending mode, allowing for highly customized artistic effects without the need for external vector editing software.

Can I save or export the spirograph designs I create?

Yes, the application provides an integrated export feature that allows you to download your generated spirograph as a high-resolution image file, such as a PNG. This ensures that you can save your artwork directly to your device without needing to register for an account or use external storage solutions. Because this application runs entirely client-side, the generation and export process happens in your browser's memory. This architecture ensures high performance and complete privacy, as your geometric designs are never uploaded to a server or stored in cookies, localStorage, or other persistent storage methods.

Is this tool compatible with mobile devices and tablets?

The application is built with a responsive-first approach, ensuring that the control panel and the drawing canvas adapt gracefully to different screen sizes. Whether you are using a desktop computer, a tablet, or a mobile phone, the interface is designed to maintain usability and visual clarity without requiring specific screen resolutions. To ensure compatibility, we use modern CSS Flexbox and Grid layouts. The drawing canvas automatically scales to fit the available viewport, and touch-optimized input sliders allow for precise adjustments of mathematical parameters while on the go, providing a consistent experience across all modern web browsers.

Related Applications

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