Free Spirograph Roulette Curve Bounding Box Calculator

Free Spirograph Roulette Curve Bounding Box Calculator
gemini-3.0-flash logogemini-3.0-flash

Calculate precise bounding box dimensions for hypotrochoid and epitrochoid curves. Perfect for laser cutting, plotter art, and geometric design planning.

Built by@Akhenaten

What This App Does

Calculate precise bounding box dimensions for hypotrochoid and epitrochoid curves. Perfect for laser cutting, plotter art, and geometric design planning. — 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 Roulette Curve Bounding Box Calculator

Overview

A single-file, browser-based utility designed to calculate the spatial limits (bounding box) of hypotrochoid and epitrochoid curves. This tool is essential for designers, plotter artists, and engineers who need to fit mathematical art patterns into specific physical constraints.

Core Features

  • Live Parametric Inputs: Real-time sliders and number inputs for Fixed Radius (R), Moving Radius (r), and Pen Offset (d).
  • Curve Type Toggle: Switchable mode between Hypotrochoid and Epitrochoid geometry.
  • Visual Preview Canvas: A clean HTML5 canvas that renders the curve and overlays the bounding box rectangle.
  • Precision Metrics: Automatically calculates Width, Height, and Center Point (X,Y) coordinates.
  • Copy to Clipboard: One-click functionality to copy dimensions for use in other software.

UI/UX Specification

  • Layout:
    • Header: Title and brief instructional text.
    • Main Tool Area: A two-column layout. The left column contains the controls (inputs). The right column contains the visual canvas and calculation results.
    • Responsive Behavior: On smaller screens, the layout automatically stacks into a single column with the canvas positioned above the results.
  • Visual Aesthetic:
    • Color Palette: High-contrast light mode. Primary background #FFFFFF, secondary neutral gray #F3F4F6, text #111827, and a professional blue accent #2563EB for active UI elements.
    • Animations: Subtle transition: all 0.2s ease-in-out on all inputs and hover states. Smooth fade-ins when results update.
    • Typography: Modern system sans-serif (Inter, system-ui).

Developer Constraints

  • Architecture: Must be contained within a single .html file. CSS and JavaScript must be embedded internally.
  • State Management: Zero storage usage. No localStorage, sessionStorage, or cookies allowed. All data must be handled via ephemeral JavaScript variables.
  • Modals: Any confirmation or alert must use a custom, in-DOM overlay element, not window.alert() or window.prompt().
  • Performance: Canvas drawing must be optimized to 60fps to ensure smooth feedback while sliders are moved.
  • Dependencies: Use CDN links for any external assets (e.g., FontAwesome for icons) with integrity hashes. No build tools (Webpack/Vite) required.

Spread the word

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

Files being used

index.html
13.0 KB
#spirograph curve calculator#roulette curve bounding box#hypotrochoid dimension tool#epitrochoid generator#parametric curve bounding box#geometric pattern sizing tool

Frequently Asked Questions

Everything you need to know about using this application.

What mathematical curves does this tool support?

This calculator supports the two primary types of roulette curves: hypotrochoids and epitrochoids. A hypotrochoid is generated by a circle rolling inside a fixed circle, while an epitrochoid is generated by a circle rolling outside of a fixed circle. These mathematical definitions are essential for artists and engineers looking to calculate exact bounding boxes for plotter-generated art, laser-cut templates, or vinyl sticker designs. The tool uses standard parametric equations to determine the precise spatial limits of these patterns.

Why is it necessary to calculate the bounding box for a spirograph?

Calculating the bounding box is crucial when you need to fit a geometric pattern within a specific physical space, such as a frame, a piece of wood for laser cutting, or a canvas. Without calculating the bounding box, it is easy to inadvertently scale a pattern that exceeds your available material dimensions. By knowing the minimum and maximum X and Y coordinates before generating the actual path, you can optimize your material usage and ensure that your design fits perfectly within your target constraints without needing to manually adjust the design after the fact.

Does this tool require external storage or login?

No, this is a completely private, browser-based utility. It operates entirely in your browser's memory using client-side JavaScript, ensuring that your inputs are never sent to a server, stored in cookies, or saved to any database. Because the tool is stateless and does not utilize local storage or persistent cookies, every calculation is handled in isolation. This architecture provides maximum security and privacy, as no data persists after you close or refresh the browser tab.

Can I export the calculated dimensions?

Yes, once you have calculated the bounding box for your curve parameters, you can copy the results directly to your clipboard or export them as a simple text summary. This makes it easy to integrate the calculated width and height values into CAD software, vector design programs, or plotter control scripts. The tool provides the total width, total height, and center point coordinates, allowing for seamless alignment within professional design software suites. Whether you are working with Adobe Illustrator, Inkscape, or specialized CNC software, the data is formatted for easy entry.

Related Applications

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