Patterned strokes
Dashes, dots, strips
open full size ↗Strokes that build many small elements instead of one body: short rounded dashes stepped along the spine, uneven hand-drawn dots, and longer strips laid out roughly enough to overlap. The elements fill the stroke's width and follow its taper.
Details
Dashes: Each dash is about 20 pixels, laid along the local spine direction and stepped by about three quarters of its own length, on rows spread across the width.
Dots: Discs of 10 to 15 pixels, wobbled by seeded harmonics of the angle, so each reads as a circle drawn by hand rather than a stamp.
Strips: Longer and wider than the dashes, with more rotation and placement jitter and tighter rows, so neighbors sometimes overlap.
Stability: Each row across the width walks the arc from the start with its own seeded random sequence, so a growing stroke adds elements at the tip without reshuffling the ones already placed.
Wet patterns
open full size ↗The same placement, with the elements as wet marks that drag the background. A dash or strip walks backward along its own direction and averages what it finds, dragging harder toward its tail, so each element reads as a short pull of wet paint; a dot pulls the surrounding color inward, so it reads as a blot. The picked-up background is tinted with the element's color.
Fringe
open full size ↗Small strokes sprouting from the spine to both sides, swept from the local direction by an angle (45 degrees by default). Their length follows the local width, so the sprouts fill the band the stroke was given and thin with the taper. Three looks: feather, where each left-right pair takes one color and the next pair the other, like a feather's bands; leaves, where the sprouts are tapered leaf shapes sized randomly from well below the width to well past it; and fringe, thinner and denser, with one color on each side of the spine.
Around strokes
open full size ↗Paths derived from the base path (spiral, entangled, and scattered from top to bottom), drawn with the brush renderer. The count of sub-strokes and their offset from the base both follow the width.
Details
Spiral: The tip circles with sin and cos while its center moves along the base path, producing one continuous coil.
Entangled: Copies of the path are offset by seeded low-frequency waves, and their endpoints pull back toward the base so the bundle reads as one gesture.
Scattered: Short strokes copy small segments of the base and move sideways by a seeded offset.
The generators return plain point arrays, documented on Path Effects, so any renderer can draw the result.
Graphic strokes
open full size ↗Strokes that keep the path, the width, and the resampling and throw away the ribbon. Top to bottom: grid cells, large flat facets, and parallel lanes.
Details
The same StrokeDef drives all three; swapping the renderer is the only change.
Caps: Ends are closed by extending vertices along the tangent by a cap profile. For a rounded cap the profile is a circle, so outer lanes and facets stop short of the middle ones.
Pixels: Cells are stamped from the spine outward, deduplicated by grid coordinate. The inside test uses signed distance across the spine, so the left and right widths stay independent.
Facets: The spine is resampled coarsely and each triangle takes one flat color. Vertices are jittered across the width, so the silhouette breaks along with the shading.
Lanes: Each lane is its own thin ribbon offset across the width, so the lanes follow the curve.
Seeded randomness: Colors and dropped cells come from a seeded generator, not Math.random, so the same settings redraw identically.
Math.randomではなくシード付きの生成器から得られるため、同じ設定からは同じ絵が描き直されます。Try drawing
open full size ↗Draw with the strokes on this page, in the drawing tool: the settings panel picks the tool, its colors, and its parameters exactly, the floating dials reroll the palette, set the width, and walk a trail of rolled tools, and Clear, Replay, and recording work as on the Drawing Tool Demo page. A turn sharper than a threshold splits the drawn line, so a fast zigzag bakes as separate strokes; each piece appears once its direction settles, and the wider the stroke, the harder its turns smooth. With a pen tablet, pressure scales the stroke around the set width, light thinner and heavy wider, each tool by its own amount; a mouse draws at the set width.