Draw an open spell ring. Place sigils in the center and signs around them. When everything is ready, seal the circle to awaken the spell.
Glyph Compiler
Draw an open spell ring. Place sigils in the center and signs around them. When everything is ready, seal the circle to awaken the spell.
This interactive Witch Hat Atelier spell diagram simulator is the most advanced browser-based tool for experimenting with the glyph-based magic system from the beloved manga. In 2026, fans and aspiring witches alike need a reliable, real-time sandbox to test seal compositions, sigil placements, and sign modifiers without installing any software. Our tool provides a fully functional drawing canvas, a real-time parser that detects rings and symbols, and a particle-based spell effect engine that brings your creations to life.
The underlying algorithm combines topological flood-fill ring detection with template-matching symbol recognition. When you draw on the canvas, the system first cleans the strokes, then searches for a closed ring using a flood-fill approach that identifies enclosed areas. Once a ring is found, the parser groups nearby strokes into symbol candidates and compares them against a dictionary of sigils and signs using a multi-resolution ink overlap score. The compiler then aggregates semantic rules from recognized signs to produce a SpellIR — a complete spell description including element, force, focus, spread, duration, and particle behavior.
Key advantages over similar tools: (1) Real-time feedback — every stroke updates the parser, recognizer, and effect preview instantly, unlike static diagram editors. (2) Full dictionary integration — the built-in reference panels show sample spells, sigils, and signs with stroke templates, so you can learn by example. (3) Diagnostic depth — the Parser, AST, and IR panels expose the full analysis pipeline, making it an excellent learning tool for understanding how the magic system works under the hood.
Q: Can I use this tool to design spells for my own Witch Hat Atelier fan game? A: Absolutely. The simulator exports a SpellIR JSON that contains all parameters — element, force, spread, focus, duration, manifestations, and direction. You can paste this JSON into your own projects or use the Spell Effect Lab to fine-tune visuals.
Q: How accurate is the symbol recognition? A: The recognizer uses a soft Dice coefficient on a 40×40 ink raster, combined with structural features like aspect ratio, stroke count, and stroke-length profile. For signs, it also normalizes rotation to the bottom-of-ring canonical frame. Typical confidence scores above 0.6 indicate a reliable match, and the diagnostics panel shows the top 3 candidates with detailed scores.
Q: Does the tool support all elements from the manga? A: The current version supports Fire, Water, Wind, Earth, and Light. Each element has a distinct particle effect (fire uses radial gradients with flicker, water uses blue blobs with highlights, wind uses thin streaks, earth uses square particles, and light uses trailing streams). The dictionary includes sigils for these elements, and the compiler will reject unsupported elements with a clear warning.
Q: Can I save my spell diagrams? A: While the tool does not have a save-to-file feature yet, you can copy the SpellIR JSON from the Diagnostic panel and store it anywhere. The Stroke Template Maker tool also lets you export normalized stroke templates for custom sigils or signs.
Q: Is this project affiliated with the official Witch Hat Atelier creators? A: No. This is an unofficial fan-made project for learning and experimentation. All trademarks belong to their respective owners.