html-canvas-artifact

Build and statically verify self-contained HTML canvas animations without a browser.

Updated Aug 21, 2026
One-click install
npx skills add https://github.com/TylerSimons1127/vibe --skill html-canvas-artifact-tylersimons1127
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: html-canvas-artifact
Source: https://github.com/TylerSimons1127/vibe/tree/main/skills/creative/html-canvas-artifact
Command: npx skills add https://github.com/TylerSimons1127/vibe --skill html-canvas-artifact-tylersimons1127

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? When you deliver a single-file HTML page with canvas drawing or CSS/JS animation but cannot open it in a browser or screenshot it, you risk shipping code that looks plausible but is broken, or painting shapes that do not read as intended. This Skill provides a build posture and a headless verification routine that catches most breakage without any rendering. ## Core Features & Use Cases - Self-contained HTML build guidance: Inline styles and scripts, devicePixelRatio-aware canvas sizing, and prefers-reduced-motion support for crisp, accessible animation. - Canvas stencil technique: Negative-space shape rendering using destination-out compositing, particle spray bursts, mist overlays, and drip effects for graffiti-style art. - Headless verification checklist: Static checks including node --check on extracted scripts, geometry math assertions, getElementById/id wiring greps, and composite-operation balance counting. - Use Case: You are asked to create an animated spray-paint smiley face as a single HTML file on a headless server with no browser or vision model. You build it with the stencil technique, then run the four static checks and report the result as logic-verified, not pixel-verified. ## Quick Start Create a self-contained HTML canvas animation of a spray-painted stencil face and verify it headlessly using the static checks in this skill.

Frequently Asked Questions about html-canvas-artifact

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify an HTML canvas animation without a browser?▼

Extract the script body and run node --check for syntax, replicate the shape geometry in a script to assert regions land correctly, grep that every getElementById has a matching id attribute, and count that destination-out sets equal source-over resets. Report the result as logic-verified, not pixel-verified.

How to draw stencil or spray-paint shapes on an HTML canvas?▼

Spray a solid filled shape using many low-alpha overlapping arcs for a misty edge, then switch globalCompositeOperation to destination-out and erase the features so the background shows through as negative space. Always reset to source-over afterward or later fills get erased.

Why does my canvas drawing erase everything after using destination-out?▼

This happens when globalCompositeOperation is not reset to source-over after an erase burst. Every subsequent fill then erases instead of painting. Reset the composite operation immediately after each destination-out section.

Can I make canvas lines crisp on high-DPI displays?▼

Size the canvas element to devicePixelRatio, capped at 2, and call ctx.setTransform(dpr,0,0,dpr,0,0) so drawing coordinates map to physical pixels. This keeps lines sharp on retina and high-density screens.

What are the limitations of headless canvas verification?▼

Static checks catch syntax errors, broken id references, geometry mistakes, and composite imbalance, but they cannot confirm visual appearance. You must state explicitly that the result was logic-verified, not pixel-verified, and never claim visual success without rendering.