The prompt for a logo that draws itself
Give Claude Code your logo and it writes it with a brush, the camera right on the ink.
- Keyword
- LOGO
- Type
- Logos and identity
- Published
- Contents
- 2 pieces
Two prompts: the first extracts the strokes of your logo and the second animates them. Open Claude Code in an empty folder and attach the logo PNG with the first one.
- The PNG on a single-color background, 1000 px wide or more.
- It works best with thick or calligraphic lettering. For a geometric symbol, the Spotify resource suits you better.
- Before animating, look at the SVG with the numbered strokes. If one runs backwards, say so.
Turn the logo into strokes
I'm attaching the [BRAND NAME] logo as a PNG. I want to turn it into writing strokes so I can animate it later as if it were being drawn by hand with a brush. Do it with a Python script I can run again: 1. Mask: separate the logo from the background by colour difference, with a smoothed edge. 2. Pieces: separate each letter or element (connected components) and name them in reading order. If two pieces make up a single letter, join them. 3. Fill: vectorise each piece on its own (for example with vtracer on the mask scaled up ×4) so the logo stays sharp at any size. 4. Strokes: compute the skeleton (medial axis) of each piece and split it into branches. Each branch is a brush stroke with the thickness given by the medial axis, so that all the strokes together cover the whole letter. 5. Writing order: within each letter, start at the highest end on the left and walk the branches depth-first, the way a hand would. Save the result in a data file for the animation (fill, strokes with their points and widths, and order) and a check SVG with the numbered strokes over the original logo. Open it, compare it with the PNG and fix whatever doesn't match before calling it done.
Write it with a brush
Using the strokes we just extracted, make a 1080×1920 vertical video in which the [BRAND NAME] logo writes itself with a brush. Use HyperFrames (HTML and GSAP rendered to video). 1. A writing plan precomputed at 30 fps in a separate script, so every render is identical: - the pen moves at constant speed within each letter and lifts between strokes in a gentle arc, a little faster; - the camera follows a blend of the pen and the centre of the letter, smoothed with a Gaussian filter, with the zoom on a logarithmic scale so it never starts or stops abruptly; - a macro shot while it writes (you see almost nothing but ink) and, after the last letter, back to the wide shot with the full logo. Print the maximum pen and camera speed per frame to check it's smooth. 2. Animation: each stroke is painted at brush thickness following the pen, in the brand colour ([colours]) with a subtle ink texture. The vector fill appears at the end so the edges are perfect. 3. Sound: brush friction while it writes, a soft hit as each letter closes and a note when the full logo appears. 4. First frame: it has to work as a cover, with the logo already recognisable. Render it, watch the whole video, check the frames where it moves to a new letter and fix any camera jumps or strokes painted in the wrong order.
From the Reel “We made their logo (Puro Datte)”
Puro Datte did not ask for this. The logo is theirs and we use it as a tribute. Do it with yours or one you have permission to use.
Watch the Reels on Instagram