Aspect ratio calculator / Doodle Cat

Doodle Cat

A pencil-and-marker cat that walks, sits, jumps on its own and reacts to touch.

Interactive · 2026 series · All animations

Move the yarn, tap the cat, or press and drag up to lift it. Free under the MIT License.

What it is

A cat drawn like a pencil-and-marker doodle on notebook paper. It is fully 2D and it lives on the page: it walks in side view, turns to sit facing you, and every so often jumps for no reason. The lines are redrawn slightly differently eight times a second, so the drawing shivers the way hand-drawn animation does, and the marker colour never quite lines up with the outline.

About the cat. It is modelled on a real cat: the long-haired grey tabby that lives with the person who runs this site. The round body, the chest ruff and the steady stare come from that cat.

What it does by itself

BehaviourWhen
Walks after the yarn, in side viewWhenever you move the pointer more than a short way from it
Sits down facing you and watches the yarnWhen it reaches the yarn, or reaches a spot it chose
Wanders to a new spotAfter sitting for a few seconds with nothing to do
JumpsAbout two times in five when it gets bored of sitting
Pounces straight upWhen you hold the yarn above its head
Chases the mouseEvery three minutes a mouse peeks out of the hole in the wall and runs across the floor. The cat forgets the yarn, runs after it and pounces once. The mouse always gets home. The Mouse! button calls it at once.
BlinksEvery few seconds

What it does when you touch it

What you doWhat the cat does
Tap or click the catHalf the time it meows, with a hand-lettered speech bubble and a sound. The other half it reaches out a paw and swats the yarn away.
Press on the cat and drag upwardYou lift it by the scruff. It hangs long and limp, legs and tail dangling, and swings when you move it.
Let goIt drops, lands with a squash, and sits.

Make it your cat

The panel under the drawing has presets and pickers for the marker colours (fur, stripes, chest, eyes, nose), the pencil line and the paper, plus sliders for how shaky the hand is, how fast the cat walks and how often it meows. Copy settings gives a block to paste over CONFIG near the top of the script.

SettingWhat it changesExample
fur, stripes, chest, eyes, noseMarker coloursfur: '#f0b56a'
ink, paperPencil line and page colourink: '#1d3a8a' for blue biro
wobble0 is a steady hand, 1 is very shakywobble: 0.5
speedWalking speedspeed: 130
mouseEverySeconds between visits from the mouse; 0 means nevermouseEvery: 180
meowChance, meowTextHow often it meows, and what the bubble saysmeowText: 'Nyan!'
showStripes, name, toyTabby marks, title text, yarn colourshowStripes: false

How the doodle look is made

Each part of the cat is a short list of points. Before a part is drawn, every point is nudged by a small random amount, and the amounts change eight times a second. The outline is traced twice with different nudges, like a pencil going over a line again, and the colour is filled a couple of pixels off to one side. Two drawings are kept, one from the side and one from the front, and the page switches between them as the cat changes what it is doing.

Five cats

VersionLookMoves around?
Soft 3DShaded and fluffySits in one place
Layered 2.5DCut-out with sliding layersSits in one place
ASCII 3DLetters and symbolsSits in one place
Pixel 3DSquare pixelsSits in one place
Doodle (this page)Pencil and marker on paperWalks, sits and jumps on its own

How to take it

Press Download the HTML file above to get doodle-cat.html, or press Copy the code and save it as a file ending in .html. It is one file with no libraries and works offline.

View the code
Loading…

Embed it on your page

<iframe src="https://aspect.tools/doodle-cat" style="border:0;width:100%;max-width:760px;aspect-ratio:760/1010" title="Doodle Cat" loading="lazy"></iframe>

License and credit

MIT License. You can use it, change it, share it and sell things made with it, for personal or commercial work. The one condition: keep the copyright and license notice that is at the top of the file.
Doodle Cat, 2026 series, by aspect.tools (https://aspect.tools/doodle-cat-page), MIT License

A visible credit is appreciated but not required.

Questions

Does the cat move by itself?

Yes. It walks after the yarn, sits, wanders to new spots and jumps on its own.

Does the cat catch the mouse?

No. It chases the mouse and pounces once, and the mouse always escapes back into its hole.

Why do the lines shake?

Every point of the drawing is moved by a small random amount eight times a second, which imitates frames drawn by hand. The wobble setting controls how much.

How do I pick the cat up?

Press on the cat and drag upward. It hangs by the scruff until you let go.

Can I recolour it or change the paper?

Yes. Use the panel under the drawing or edit CONFIG in the file.

Is it light enough for phones?

Yes. It is the lightest of the five cats and draws only a few dozen strokes per frame.

Related tools and guides