Graffitis

Original demo by Vincent Hardy, published September 6, 2010.

Open Graffitis in the gallery

Graffiti Markup Language, or GML, records a tag as strokes of timed points. This demo reads that data and paints it again at the speed it was drawn, combining SVG for the line and canvas for the spray.

Each stroke is smoothed into cubic curves and turned into a path. The drawing effect uses a classic trick: make the dash and gap as long as the path, then animate the dash offset so the line seems to grow. A canvas layer throws off small particles based on the speed of the pen. Other panels export the result as SVG, show the raw GML, or apply a filter that blends the tag into a brick wall.

The original fetched tags from a public repository at run time. This version makes no outside requests. The two tags recorded for the demo remain, and two generated tags take the place of the remote samples. The brick photo was replaced by a procedural texture, and the display font by a system stack.

Several small bugs were fixed, including overlapping playback when switching tags and a crash on one-point strokes. Recording now uses pointer events, so it works with touch as well as a mouse.

This note was newly written for the reconstruction. Read the original post in the Internet Archive.

Topics: CSS3, Canvas, YUI, Animation, HTML5, Interactive