kirupa.com

10 / ILLUSTRATIONS

Illustrations

Accepted and rejected examples, Permanent Marker callouts, color roles, shapes, spacing, and an illustration brief. Arrow rules have their own page.

Agent Instructions / illustrations

Create a KIRUPA teaching illustration. Read /design/sections/illustrations.md and inspect its BFS and Merkle Tree images first. Use /design/illustrations.json for sources, colors, fonts, and licenses. State the teaching point. Show recognizable flat, colorful objects, quiet structure, and rounded containers clear of borders. Keep a short callout arrow's tail near its text and its tip on the named detail's center. Follow /design/arrows.htm for every arrow: callouts start at their words (halfway down the block when wrapped), are all curve like a whiteboard marker flick, and stop 10px+ clear of what they point at; connectors use rounded elbows and shared trunks; a straight sequence's arrows are straight and equal on one center line; a cycle's equal arrows run side midpoint to side midpoint on one rounded loop. On charts, no gridline, data line, or bar crosses text or icons; callouts use kirupa.com blue #0798FF; celebrations go on a tilted Kalam Bold sticker; a peel is a real folded flap. Keep sibling gaps equal; shapes never nearly touch. Inspect arrows and gaps at 2x. Keep annotations off the reading path and scenes stable. Color never carries meaning alone. Callout words take the arrow's color; swoops use open space. Data: Geist Mono Bold, no pixel fonts. No title or caption in the art; the sentence before it sets it up. Tuck connectors under boxes. Leaders take their label's color, not border gray. Match arrows and values to prose and code. Don't theme-tint raster art. Keep editable source, portable fonts, licenses, alt text. Check article and phone sizes, Light and Dark. Follow WCAG 2.2 AA for new or changed content: semantic HTML, keyboard access, visible focus, readable contrast in every theme, text alternatives, labeled controls, and explicit errors. Support zoom/reflow, respect reduced motion, and keep sound optional. Read /design/sections/accessibility.md for acceptance checks. Report unresolved barriers; automated checks alone do not establish conformance.

A KIRUPA teaching illustration shows the objects, relationships, and state that the explanation depends on. Readers should be able to locate the character, follow a connection, or see what changed before reading every label. The references here come from Auto-navigating our Grid using BFS and Understanding Merkle Trees. Their drawing style is separate from the surrounding site's theme.

Rejected example

This supplied example is rejected as an illustration-style reference. Both panels are part of the rejected image; the lower organizer is not an approved example. Words stand in for the physical tools, and the comparison shows no recognizable objects or action. It already has rounded corners and restrained colors, so adding those features alone cannot fix it. A table can be useful when the data is the subject, but labeling two boxes does not illustrate a physical metaphor:

Rejected. Rounded corners and pale fills do not make a physical metaphor visual. Show the tools and the relationship being explained.

Word-only tool boxes

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Rejected reference: an orange box contains the words hammer, wrench, and screwdriver; a blue organizer repeats those words in rows. No actual tools are pictured.

User-supplied rejected illustration, 2026-10-19. Both panels are rejected style references. Fixed artwork; local controls change its surrounding context.

Redrawing the same concept

For the same concept, draw the same hammer, wrench, and screwdriver in both states. Let their arrangement show the difference. Use a short handwritten instruction and a targeted highlight to identify the wrench. This new redraw applies the guidance; it is not an image taken from a tutorial. Its editable source and self-contained SVG are available below:

New example. Keep object identity consistent, let arrangement show the comparison, and give the callout a specific target.

The same tools, visibly rearranged

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

The same hammer, wrench, and screwdriver appear scattered in one tray and organized into labeled rows in another. A handwritten instruction points to the wrench, and its organized row is highlighted.

New illustration made for this reference, not a published tutorial figure. Tools from the original artwork used by Smooooth (Twemoji), CC BY 4.0; Permanent Marker, Apache 2.0; Nunito, SIL OFL 1.1. Fixed artwork; local controls change its surrounding context.

Objects and visual vocabulary

Use recognizable objects when the explanation involves objects. In the Merkle example, folders contain files, a monitor identifies the local copy, and a globe identifies the cloud copy. Repeated folder, image, settings, and lock symbols let us compare the same hierarchy without reading every filename. Use the site's KIRUPAicons for consistent colorful icon artwork, or draw simple flat objects that belong to the same visual family. Do not mix platform-native emoji renderings, glossy stock illustrations, and unrelated icon packs in one sequence:

Good reference. Repeat the same symbols and layout so the reader can compare state without decoding a new picture.

Recognizable objects and matching structures

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Local and cloud file trees have matching Project, Docs, Assets, and Config hierarchies. Colorful file symbols and check marks reinforce that the copies agree.

Unmodified Merkle Tree tutorial illustration; reference copy. Fixed artwork; local controls change its surrounding context.

Shapes, lines, and spacing

Draw clean flat geometry with rounded corners on objects that benefit from them: obstacle tiles, containers, buttons, and annotation boxes. Leave visible padding between each object and the surrounding borders or dividers. If an icon looks cramped, make it smaller instead of letting it touch the boundary. Judge this gap from the painted artwork, not empty space inside its SVG.

Keep structural geometry accurate. The BFS grid has square cells and straight shared boundaries; its rock containers are rounded. Use round line caps and joins on arrows, a consistent stroke weight, and enough space that pointers do not cross labels.

When an icon would otherwise lack contrast against its fill, like a pale icon on a pastel overlap, a thin white outline and a subtle drop shadow are fine. Otherwise, avoid making every element a heavy bordered card, or adding perspective, glass effects, and shadows that do not explain a relationship:

Good reference. Use friendly object geometry without distorting the coordinate system. Reserve stronger color for the relationship being measured.

Rounded objects in a precise grid

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Zorb and a rocket occupy a labeled five-by-five grid with rounded rock tiles. Red measurement arrows indicate one column across and three rows down.

Unmodified published BFS figure retrieved 2026-10-19; this tutorial is not yet in this checkout. Fixed artwork; local controls change its surrounding context.

Color and emphasis

Keep the canvas white or near-white, with quiet gray structure and dark readable labels. Use pale blue, yellow, green, or lavender fills to mark a region, then stronger color for its boundary, number, arrow, or changed value. The sampled palette below records the BFS artwork, not new global CSS tokens. Assign colors to explicit roles within an explanation and keep those meanings stable. Do not recolor a diagram with the page palette or assume a sampled accent is safe for small text. Here, blue marks reached cells, dashed outlines identify the newly reached cells, and lavender distinguishes the adjacent rocks:

Good reference. Use fill, number, and outline together to distinguish the new search frontier from blocked cells.

First search ring

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Zorb's start is marked zero. Two open neighbors are numbered one and outlined with blue dashes; the adjacent blocked neighbors are lavender.

Unmodified published BFS figure retrieved 2026-10-19. Fixed artwork; local controls change its surrounding context.

Sampled BFS palette

  • #FFFFFFDrawing surface
  • #D9DEE5Quiet grid structure
  • #D3D9E0Obstacle tile fill
  • #A9B3BDObstacle tile outline
  • #D8EDFFPreviously reached area
  • #B3DAF9Newly reached cells
  • #DDD0F4Adjacent blocked cells
  • #FFF1C7Destination alignment
  • #DDF3CFSelected route region
  • #E0605ADistance annotation

Sampled fills and accents are not automatically accessible text colors. Check new normal text at 4.5:1 and essential graphical distinctions at 3:1, with labels, numbers, outlines, or patterns as additional cues.

Consistent sequences

When showing an algorithm, reuse the same coordinate system, object positions, scale, labels, and crop. Change only the state being explained. The next BFS frame keeps Zorb, the rocket, and all four rocks in place while adding the cells reached in two steps. Moving a rock or shifting the grid between frames would make the reader solve a different problem:

Good reference. Hold the scene still while the algorithm's state changes.

Second search ring

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

The same grid adds four cells numbered two. Zorb, the rocket, rocks, axis labels, and earlier step counts remain in their original positions.

Unmodified published BFS figure retrieved 2026-10-19. Fixed artwork; local controls change its surrounding context.

Focus and detail

Reduce detail when it competes with the current explanation. This BFS frame keeps Zorb and his immediate neighbors clear while fading the surrounding grid. The faded content still provides context. Do not fade the subject, a necessary label, or an error until it becomes unreadable, and explain what the change in emphasis means:

Good reference. Use selective emphasis to distinguish what the actor can inspect from what the reader can see.

Local visibility

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Only Zorb's cell and its four immediate neighbors remain strongly visible. The rest of the grid, including the rocket, is faded.

Unmodified published BFS figure retrieved 2026-10-19. Fixed artwork; local controls change its surrounding context.

Arrows and technical accuracy

Use arrows for a specific relationship, with unambiguous endpoints. Showing every breadcrumb is useful when explaining predecessor links, but it is a poor choice when the task is to identify one route. Compare the unfiltered frame with the focused version below. Its green arrows point from discovered cells back toward Zorb; they are breadcrumbs, not the forward walking direction. Match every arrow, coordinate, count, and label to the accompanying explanation and code:

Avoid for a single-route explanation. This is not inherently an incorrect diagram. It becomes a poor choice when the explanation needs the reader to follow just one route.

All breadcrumbs at equal priority

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Every open cell has a step count and a predecessor arrow, so many arrows compete for attention instead of isolating the route to the rocket.

Unmodified intermediate BFS figure. Valid for teaching the full predecessor map; the tutorial then simplifies it for the route explanation. Fixed artwork; local controls change its surrounding context.

Good reference. Make the relevant route easy to follow without changing the underlying scene or reversing the breadcrumbs.

One route emphasized

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Green cells, numbers, and arrows isolate the six-step predecessor chain from the rocket back to Zorb. Other arrows remain visible in gray.

Unmodified published BFS figure retrieved 2026-10-19. Fixed artwork; local controls change its surrounding context.

Handwritten callouts

Use Permanent Marker for short handwritten callouts. This is the author's confirmed font, not an identification guessed from a raster image. The Merkle reference uses the handwritten 'Not equal!' label above a bracket joining the two root hashes. Reserve this face for a few words that direct attention: 'Only this branch changes', 'Start here', or 'Not equal!'. Keep longer explanations in HTML. Do not set paragraphs, filenames, code, coordinates, or hash values in a marker font, and do not simulate handwriting by rotating ordinary sans-serif words:

Good reference. Use Permanent Marker to direct attention to one relationship, keeping filenames and values in a separate data face.

A short handwritten callout

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

A handwritten Not equal! label sits above a bracket pointing to the local and cloud Project roots, whose displayed values differ.

Why this arrow works: The Not equal! bracket is a deliberate style choice. Its two arrows are a symmetric pair centered under the label, so Gestalt grouping ties them to Not equal! without the tail touching the words. See Arrows.

Unmodified Merkle Tree tutorial illustration. Permanent Marker callout font confirmed by the author. Fixed artwork; local controls change its surrounding context.

Callout arrows

Treat the callout text and its arrow as one annotation, with the tail starting at the words and the head stopping just short of the target. Arrows have their own page, Arrows, with every rule and an avoided and better example of each.

Arrow rules

In short: callouts start at their words and are all curve, like a whiteboard marker flick, with no straight runs and no sharp joints except the head. Structural arrows in diagrams use straight runs, rounded elbows, and shared trunks.

Two layouts are special cases where every arrow matches: a straight sequence uses perfectly straight, equal arrows on one shared center line, centered in equal gaps, and a cycle rides one rounded loop, with every arrow running from the midpoint of a side to the midpoint of the next step's facing side, all the same length. Neither bends an arrow its own way.

On a chart, a callout's text and arrow use the classic kirupa.com blue. Every arrow is one smooth stroke that stops just short of its target and stays clear of labels, borders, and the reading path. The details, examples, and the tool that draws them are on Arrows.

Callouts in published figures

The rules below came from Kirupa's review of figures that agents drew for published articles. Each one is small on its own, but together they decide whether a figure reads as one confident drawing or as a pile of parts. Every pair shows the real published figure before and after the fix. First, give a callout's swoop open space. If the arrow would brush past another label, flip it vertically or move the words to the empty side of the figure, so it uses the free space instead of crowding the content beside it. In the velocity figure, Next spot moved from the crowded upper right, where its curve squeezed past vx = 240, to the empty lower right:

Before vs. after. Bad: the swoop squeezes past the vx = 240 label. Better: flip the arrow vertically and put the words in the empty lower right, so the callout uses free space instead of crowding other content.

Crowded swoop vs. flipped into open space

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Two versions of the bouncing-square velocity figure. In the avoided one, the Next spot callout sits in the upper right and its arrow curves down past the vx = 240 label, nearly touching it. In the better one, the words sit in the empty lower right and the arrow curves up into the dashed square, clear of every label.

Before and after of the published bs_velocity figure on /animations/color_changing_bouncing_square.htm, fixed on 2026-11-24 after Kirupa's review. Both panels are rendered from the figure's editable SVG source (before: the previous commit; after: this fix). Fixed artwork; local controls change its surrounding context.

Point at the detail you're naming, and aim the tip at that detail's center. A tip that stops on blank paper, beside the shape, or to one side of a small target makes the reader guess. Before shipping, follow the tip and confirm it lands on the thing the words describe: the off-limits band itself, the center of point 2, the thin black line, or the dotted tunnel. When the target is small, let the curve bend more so it drops into the target rather than sliding past it:

Before vs. after. Bad: the Too close! tip lands on empty paper beside the wheel. Better: the tip lands inside the off-limits band, the detail the words name.

Tip on blank paper vs. tip on the detail

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Two versions of the hue-wheel figure. In the avoided one, the Too close! arrow ends on white space just outside the wheel. In the better one, the arrow ends inside the grayed-out off-limits band it is talking about.

Before and after of the published bs_hue_jump figure on /animations/color_changing_bouncing_square.htm, fixed on 2026-11-24 after Kirupa's review. Both panels are rendered from the figure's editable SVG source (before: the previous commit; after: this fix). Fixed artwork; local controls change its surrounding context.

Before vs. after. Bad: a flat arc ends to the right of the circled 2. Better: a curvier drop that aims at the center of the circled 2, the point being referenced.

Beside the target vs. into its center

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Two versions of the triangle-and-hexagon points figure. In the avoided one, a flat arc from Extra points on the edges stops to the right of the circled 2. In the better one, a curvier arrow drops into the circled 2 and aims at its center.

Before and after of the published morph_clip_points figure on /html5/creating_morph_animation_without_morphing.htm, fixed on 2026-11-24 after Kirupa's review. Both panels are rendered from the figure's editable SVG source (before: the previous commit; after: this fix). Fixed artwork; local controls change its surrounding context.

Before vs. after. Bad: the tip hangs left of the thin black line. Better: the tip stops just above the line, so there's no doubt where the swap happens.

Pointing near the line vs. at it

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Two versions of the squash-and-swap figure. In the avoided one, the Swap it here! arrow ends in the air to the left of the thin black line. In the better one, it ends just above the black line itself.

Before and after of the published morph_squash figure on /html5/creating_morph_animation_without_morphing.htm, fixed on 2026-11-24 after Kirupa's review. Both panels are rendered from the figure's editable SVG source (before: the previous commit; after: this fix). Fixed artwork; local controls change its surrounding context.

Write a callout's words in the same color as its arrow, or a slightly darker shade of the same hue, so the eye reads the words and the arrow as one note. Dark ink words with a dark red arrow look like two separate things that happen to sit near each other. tools/build_ai_fundamentals_images.py fails a figure whose callout words don't match their arrow's color (same hue, at most 20% darker):

Before vs. after. Bad: dark ink words with a dark red arrow read as two separate things. Better: the words wear the arrow's color (or a slightly darker shade), so they read as one note.

Dark words vs. words in the arrow's color

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Two versions of the square-and-star points figure. In the avoided one, the handwritten words Which point goes where? are dark ink while the arrow is dark red. In the better one, the words and the arrow are the same dark red.

Before and after of the published morph_points figure on /html5/creating_morph_animation_without_morphing.htm, fixed on 2026-11-24 after Kirupa's review. Both panels are rendered from the figure's editable SVG source (before: the previous commit; after: this fix). Fixed artwork; local controls change its surrounding context.

Leader lines, the short straight lines that tie a plain label to a spot in a chart or diagram, must stand out from the borders, axes, and gridlines around them. Never draw them in the quiet structural gray (#a9b3bd or lighter): next to a gray border they disappear, and the reader can't tell which edge the label means. Draw a leader in its label's own color, or in dark ink (#1e2933) when the label is ink, at least 2.5px wide. Dashed drop lines from a value to its axis take the value's color the same way:

Before vs. after. Bad: leader lines in the same quiet gray as the border they touch blend into it. Better: draw each leader in its label's color, or dark ink, so it stands out from borders, axes, and gridlines.

Gray leader lines vs. contrasting ones

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Two versions of the right edge of the critical-strip figure. In the avoided one, two thin gray lines connect the labels 1896: no zeros on the edges and later: a thin no-zero sliver to the strip's gray border and nearly disappear into it. In the better one, the first line is dark ink and the second is green like its label, so both are easy to follow.

Before and after of the published riemann_hypothesis_edge_sliver figure on /ai_fundamentals/riemann_hypothesis.htm, fixed on 2026-11-24 after Kirupa's review. Both panels are rendered from the figure's editable SVG source (before: main before the fix; after: this fix). Fixed artwork; local controls change its surrounding context.

Type, titles, layering, and icons

Never set figure labels in a pixel font unless the figure is about pixels. Data labels, numbers, code, and identifiers use a thick, noticeable monospace: Geist Mono Bold, bundled as ai_fundamentals/images/fonts/geist-mono-700.ttf with ligatures removed, so every character reads on its own. Time units sit right against their number, with no space: 2.3s, 9.6s, 10ms, never 2.3 s. The renderer spaces it to the same advance the earlier labels used, so layouts keep their room:

Before vs. after. Bad: a pixel font makes every number blocky and harder to scan. Better: a thick, noticeable monospace, Geist Mono Bold, for data labels; keep pixel fonts for figures about pixels.

Pixel font vs. thick monospace

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Two versions of the requestAnimationFrame timestamps figure. In the avoided one, the numbers use a blocky pixel font. In the better one, the same numbers use Geist Mono Bold, a thick, clean monospace.

Before and after of the published fr_timestamps figure on /animations/importance_of_frame_rate.htm, fixed on 2026-11-24 after Kirupa's review. Both panels are rendered from the figure's editable SVG source (before: the previous commit; after: this fix). Fixed artwork; local controls change its surrounding context.

No title or caption of any size or weight inside the art, because the sentence before the figure sets the context. Legends, axis labels, and data labels are fine. When a title or caption comes out, trim the empty band it leaves so the drawing starts near the top:

Before vs. after. Bad: a bold title restates the prose and pushes the drawing down. Better: let the sentence before the figure set it up and start the drawing near the top.

Title inside the art vs. no title

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Two versions of a bar chart of failure categories. The avoided one opens with a bold title, Failures found in 100 traces, that repeats the sentence before it. The better one drops the title and starts with the bars.

Before and after of the published error_analysis_on_traces_counts figure on /ai_fundamentals/error_analysis_on_traces.htm, fixed on 2026-11-24 after Kirupa's review. Both panels are rendered from the figure's editable SVG source (before: the previous commit; after: this fix). Fixed artwork; local controls change its surrounding context.

Layer shapes the way real objects stack. When a road, bar, or connector meets a container, draw it first and tuck it under the container, so the container's rounded edge and outline stay whole. Never let a later shape paint over an outline it should slip behind:

Before vs. after. Bad: the road paints over the green block's rounded right edge. Better: draw the road first and tuck it under the block, so the block sits on top.

Road over the block vs. road under it

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Two versions of a road of checked zeros. In the avoided one, the gray road is painted on top of the green block's rounded right edge, hiding it. In the better one, the road starts underneath the block, so the block's rounded edge and outline stay whole.

Before and after of the published riemann_hypothesis_checked_vs_infinite figure on /ai_fundamentals/riemann_hypothesis.htm, fixed on 2026-11-24 after Kirupa's review. Both panels are rendered from the figure's editable SVG source (before: the previous commit; after: this fix). Fixed artwork; local controls change its surrounding context.

Draw icons with the same care as everything else. When a stock icon looks lopsided, too thin, or crammed against its neighbor, draw a simple flat version that matches the figure: a wooden hourglass with real sand, a flat face with clear brows and a bead of sweat, sized and spaced like siblings and grounded with a soft shadow. Keep each label inside the region it names; the Riemann Hypothesis label belongs inside the dug-out ground, not below it:

Before vs. after. Bad: stock icons that look lopsided, thin, or crammed together. Better: draw simple flat versions that match the figure, sized and spaced like siblings.

Stock icons vs. drawn with care

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Two versions of the icons beside Riemann's sticky note. In the avoided one, a thin stock hourglass and a grimacing face are lopsided and crowded together. In the better one, a wooden hourglass with nearly all of its sand run out and a worried, sweating face are drawn in the figure's flat style, spaced apart, with a soft shadow.

Before and after of the published riemann_hypothesis_sticky_note figure on /ai_fundamentals/riemann_hypothesis.htm, fixed on 2026-11-24 after Kirupa's review. Both panels are rendered from the figure's editable SVG source (before: the previous commit; after: this fix). On 2026-11-27 Kirupa dropped the big icons from the published figure altogether: decorative icons don't need their own section, so the face now sits small beside the caption it reacts to. Fixed artwork; local controls change its surrounding context.

Before vs. after. Bad: the arrow ends away from the dotted tunnel, and the label falls below the region it names. Better: the tip lands on the tunnel and the label stays inside the ground.

Arrow off the tunnel vs. on it

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Two versions of the wormhole figure. In the avoided one, the wormhole arrow ends above the dotted purple tunnel, and the Riemann Hypothesis label falls below the dug-out ground. In the better one, the arrow ends on the dotted tunnel, and the label sits inside the ground.

Before and after of the published riemann_hypothesis_wormhole figure on /ai_fundamentals/riemann_hypothesis.htm, fixed on 2026-11-24 after Kirupa's review. Both panels are rendered from the figure's editable SVG source (before: the previous commit; after: this fix). Fixed artwork; local controls change its surrounding context.

Spacing and breathing room

Spacing follows the same discipline as arrows: consistent gaps and room to breathe. Measure gaps from painted edges, then make the layout match:

  • Use equal gaps between sibling elements in a row or column.
  • Give a central shape the same gap above and below, or left and right. A circle sitting 11px from the rows above and below it looked cramped; 56px fixed it.
  • Never let shapes nearly touch. Move them apart or make them smaller rather than closing the gap.
  • Reuse a small set of gaps, for example 24px between siblings and 48-56px between groups, measured from painted edges.
  • In a three-item figure like a Venn diagram with captions outside the shapes, put the two top captions beside the upper-outer side of their shapes, not above them, so all three captions sit evenly around the figure.

In this comparison, equal 24px sibling gaps and the same 56px above and below the circle replace cramped 11px gaps:

Avoid vs. better. Bad: the circle sits 11px from the rows above and below, sibling gaps vary, and two boxes nearly touch. Better: every sibling gap is 24px and the circle has the same 56px gap above and below, so each group has room to breathe.

Cramped, uneven spacing vs. equal gaps

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Both panels show a row of three boxes, a circle, and another row of three boxes. In the avoided version the circle sits only 11 pixels from each row, nearly touching them, and the gaps between sibling boxes are uneven. In the better version every sibling gap is 24 pixels and the circle has the same 56-pixel gap above and below.

New bad-and-better pair made for this reference, not a published tutorial figure. Nunito, SIL OFL 1.1. Fixed artwork; local controls change its surrounding context.

Charts

Charts follow one hard rule: no line ever crosses text or an icon. That covers gridlines, data lines, data markers, and bars. Put totals and annotations in a header band above the plot, end gridlines before any end-of-line labels, and route a callout's arrow so it never touches a data line either.

Check it in a browser rather than by eye: collect the outline of every text and image element, rotated with it (a tilted label's axis-aligned box is oversized and gives false hits), sample points along every gridline and data path, and expect zero hits.

A chart's handwritten callout uses the classic kirupa.com blue, --primary (#0798FF) from the site header, for both its words and its arrow. That blue is only 3.02:1 on white, so it's fine for a large handwritten callout (about 34px) and for the arrow, but not for small text. Draw the data series in a different hue from the kirupa-blue callouts on the same chart, so the annotation never blends into the data.

When a callout has plenty of room, push its curvature out: one broad, smooth sweep, like a quarter of an ellipse, that starts bending early, rather than running nearly straight and then bending tightly near the target. In this posts-per-week chart, the callout sits in the header band, and its arrow sweeps in one long quarter-ellipse from the words down into the week people passed the bots, without touching either line:

Good reference. Keep annotations in a header band above the plot and stop gridlines before end-of-line labels, so no line crosses text or an icon. The callout's words and arrow use the classic kirupa.com blue, and the arrow never touches a data line. With plenty of room, the arrow is one broad quarter-ellipse that starts bending early instead of bending tightly near the target.

A kirupa.com blue callout that never crosses a line

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Line chart of posts per week from July 13 to November 9, 2026. A gray Bots line bounces between about 30 and 124 posts, then drops below 30 from October 26. A green People line stays low until mid-October, then climbs to 46, 33, and 39. A handwritten callout in kirupa.com blue, People pass the bots!, sits above the plot, and its blue arrow sweeps in one long, smooth quarter-ellipse from the end of the words down into the week of October 26. The gridlines stop before the People and Bots labels at the right.

Unmodified figure from the Forum Afterlife Update newsletter, November 2026. Permanent Marker, Apache 2.0; Nunito, SIL OFL 1.1. Fixed artwork; local controls change its surrounding context.

A celebration headline, like a big percentage jump, goes on a sticker that looks slapped on: tilted about -6°, with a sunny yellow face (#FFE36E), a white die-cut edge, and a soft blurred drop shadow. Set its words in a legible handwriting face, Kalam Bold (/design/illustrations/kalam-bold.ttf, about 78px, dark ink #1e2933); a pixel display face was too hard to read at a glance. A party popper can perch on one corner.

Playful heckling captions can crowd around it, each in Kalam Bold (about 34px) in kirupa.com blue with its own face icon and a blue arrow pointing at the sticker. The pointing can be comical, like one clean loop-de-loop, but every tail still leaves from its caption's first or last letter on the midline, or straight up or down from its middle.

If a corner peels, make it look like real paper:

  • Cut the corner off along a slightly bowed fold line with a clipPath.
  • Fold it back as a flap that mirrors the missing corner across that fold (its tip is the corner reflected across the fold line).
  • Fill the flap with the sticker's pale backing, darker at the fold and white at the tip.
  • Let it cast a soft blurred shadow onto the sticker.

Never paste a loose decorative triangle on a corner. The whole celebration lives in the header band, so no bar or gridline runs through it:

Good reference. Draw the bars in green, a different hue from the kirupa-blue captions, so the data and the heckling stay distinct. Put a celebration on a slapped-on sticker in a legible handwriting face, peel its corner as a real folded flap rather than a loose triangle, and let blue captions heckle it. Each caption's tail leaves from its first or last letter on the midline, never a corner, and everything stays in the header band above the plot.

A slapped-on sticker, heckled by captions

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

Bar chart of 1.8M forum page views over the last 30 days, October 21 to November 19, drawn as green bars. Above the plot, a tilted yellow sticker with a white die-cut edge reads Up 167%! in bold handwriting, with a party popper on its top-right corner and its bottom-left corner peeling back as a folded paper flap. Four blue handwritten captions point at it: Wow! with a star-struck face, whose arrow does a loop-de-loop, You da man! with sunglasses, That's...nice? with an upside-down face, whose arrow leaves from the T, and Big if true with side-eye. No gridline or bar touches any text or icon.

Unmodified figure from the Forum Afterlife Update newsletter, November 2026. Icons from the original Twemoji artwork used by KIRUPAicons, CC BY 4.0; Kalam Bold and Nunito, SIL OFL 1.1. Fixed artwork; local controls change its surrounding context.

Data labels

Give data labels a separate readable type role. Filenames and hash-like values need a clear monospace face; coordinates and ordinary object labels need a clean sans-serif. The exact families of all rasterized data labels cannot be recovered from these PNGs. For new drawings, use bundled Nunito for labels and Geist Mono Bold for data; never a pixel font such as Departure Mono unless the figure is about pixel art. These are choices for new drawings, not claims about the original files. Keep labels beside their objects. In this Merkle state, blue replacement values and visible cross-outs identify the changed file, Config folder, and Project root; the other entries retain their previous values:

Good reference. Use position, replacement labels, and cross-outs alongside color to make the changed dependency chain visible.

Changed values within a stable hierarchy

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

The local settings file, Config folder, and Project root have blue replacement values with their previous pink values crossed out. The cloud tree remains unchanged.

Unmodified Merkle Tree tutorial illustration; original colors are evidence, not an accessible-text palette for new work. Fixed artwork; local controls change its surrounding context.

Alternative representations

A second representation should preserve the objects and relationships from the first. The Merkle tree view uses the same folder and file symbols as the earlier directory view. Its highlighted path runs from settings through Config to Project, while the unaffected branches recede. Avoid replacing concrete objects with identical anonymous boxes when their identity helps explain the relationship:

Good reference. Keep visual vocabulary consistent when changing representations, and emphasize only the relevant dependency path.

The same objects in a tree view

LOCAL PREVIEW

Activate this specimen to load its real styles. No saved preferences change.

The folder hierarchy is drawn as a tree. Blue arrows connect the settings file through Config to Project, while unrelated branches are faded.

Why this arrow works: Each arrow points at the folder icon and its label as one grouped destination, so the whole group is the target. The arrows follow the tree's own connectors and keep a clear gap from that group. See Arrows.

Unmodified Merkle Tree tutorial illustration; reference copy. Fixed artwork; local controls change its surrounding context.

Drawing dimensions

For new vector drawings, a useful starting point is a 900px-wide artboard, roughly 32px outer padding, 2-4px structural strokes, 12-24px object corner radii, 24-28px ordinary labels, and 28-36px handwritten callouts. These are working recommendations at that artboard size, not measurements required by every existing illustration. Scale the stroke and type together. Keep arrowheads proportionate (open chevrons with 14-18px arms on a 4px stroke), allow a clear gap between a pointer and its label, and check the result at the actual article width before exporting.

Export and theme behavior

Keep an editable SVG or the original authoring file. When exporting SVG, make font and icon dependencies portable: embed permitted resources or outline a delivery copy of the text while retaining an editable text source. A font-family declaration alone does not bundle a font, and an SVG loaded through an img element cannot be assumed to fetch external fonts. For PNG, export enough pixels for the intended display size, normally 2x; keep lines and lettering sharp. Do not use CSS filters to invert a flattened drawing for dark mode. Retain a light artboard or create a separately checked dark version.

Mobile and accessibility

On narrow screens, do not shrink a dense diagram until its labels are unreadable. Provide a full-size image link, a focused crop, a stacked version, or a keyboard-scrollable region for a genuinely two-dimensional drawing. Every example here has a full-size link and a local surrounding-theme preview. The original image colors and fonts remain fixed. A source image can be a useful composition reference without being an accessibility template: new essential text still needs 4.5:1 contrast, and essential graphical distinctions need 3:1 or another equally clear visual cue.

Agent checklist

Before delivery, introduce the figure in the preceding paragraph and write alt text describing its point, not just its contents. Check the image against the exact prose and code: the same objects, coordinates, direction, counts, and state. Inspect every arrow against the arrow rules and every gap against the spacing rules. On a chart, check in a browser that no gridline, data line, or bar crosses any text or icon. Inspect Light and Dark presentation, mobile readability, clipping, font loading, and color-independent cues. Reject decorative arrows with no target, random emoji, tiny labels, unrelated changes between frames, and word-only boxes pretending to be the objects in the example. Read illustrations.json for the palette, font files, example provenance, and production checklist.

  • Use meaningful colorful objects, restrained rounded geometry, stable visual roles, and short Permanent Marker callouts.
  • Keep objects inset from borders and dividers. Group each callout with its short pointer without interrupting the comparison's reading order.
  • Follow /design/arrows.htm for every arrow. Keep sibling gaps equal and never let shapes nearly touch.
  • On charts, never let a gridline, data line, or bar cross text or an icon; callouts use kirupa.com blue, and celebrations go on a slapped-on Kalam Bold sticker whose peel looks like real paper.
  • Keep new illustrations technically consistent with their prose and code; preserve scene geometry across a sequence.
  • Do not treat an illustration palette as a replacement for site tokens, use marker lettering for data, or claim an unverified font match.
  • Write a callout's words in its arrow's color, or a slightly darker shade of the same hue.
  • Aim every callout tip at the center of the detail it names, and give the swoop open space; flip it before it crowds other text.
  • Use a thick monospace (Geist Mono Bold) for data, never a pixel font; no title or caption inside the art (the sentence before the figure sets it up); tuck connecting shapes under containers; and draw icons that look deliberate.
  • Draw leader lines in their label's color or dark ink, never the structural gray of nearby borders, axes, and gridlines.
Source maphttps://www.kirupa.com/data_structures_algorithms/auto_navigating_grid_using_bfs.htmdata_structures_algorithms/understanding_merkle_trees.htmdesign/illustrations.source.jsondesign/illustrations/tool-redraw.source.svghttps://github.com/google/fonts/tree/main/apache/permanentmarkerhttps://github.com/twitter/twemojitools/icon_gallery_template.htm