Mammoth Templates logomammoth templates

Home / AI Apps / Image generation

Video preview

Prism Image Generator is a complete text-to-image app front end: a prompt box with example chips and a Surprise me button, eight style presets, five aspect ratios, a seed with randomize and lock, and batches of four results with a shimmer-and-progress animation. Every image has actions for variations, favorite, PNG download and a large lightbox view with the prompt, seed and a copy / reuse-settings option. History lives in a local gallery with a favorites filter, delete and clear.

No AI backend is required. A deterministic procedural art engine on Canvas2D draws every picture from a hash of prompt + style + seed - same inputs, same image - and reads the prompt for meaning: colour words choose the palette, mood words change energy, darkness and density. The eight looks (Aurora, Ink Wash, Vaporwave, Blueprint, Mosaic, Nebula, Topo, Risograph) use flow fields, layered noise, Voronoi tiles, marching-squares contours, halftone screens and film grain, so results look finished rather than placeholder.

History stores only small thumbnails and parameters; large views and downloads are re-rendered on demand.

The engine sits behind one small provider interface in js/ai.js, documented step by step. Switch to an OpenAI-compatible images endpoint from Settings, or point it at your own proxy so no secret key ever reaches the browser. Plain HTML, CSS and JavaScript, no dependencies, works by double-clicking index.html.

Highlights

  • Batch of 4 per generation with shimmer placeholders, progress bar and a Stop button
  • 8 distinct procedural styles; live style previews re-render for your current prompt and seed
  • Deterministic: same prompt + style + seed always gives the same image; prompt words steer palette and mood
  • Seed field with randomize and lock; 5 aspect ratios (1:1, 4:3, 3:4, 16:9, 9:16)
  • Per-image variations, favorite, PNG download (up to 1920px) and lightbox with keyboard navigation, copy and reuse settings
  • Gallery persisted in localStorage (thumbnails + parameters only), favorites filter, delete, clear history
  • Documented one-file provider interface (js/ai.js) with an OpenAI-compatible example; no keys hardcoded
  • Dark and light themes, responsive 360px to 1920px, keyboard accessible, reduced-motion aware