Shape fills
Unlike the blob fills, which enclose the whole gesture, these shapes are built from the endpoints alone. The contour generators live with the path effects (circleFromEnds, ovalFromEnds, rectFromEnds, diamondFromEnds, triangleFromEnds), and the contours feed the same blob renderers as any other closed region.
circleFromEnds、ovalFromEnds、rectFromEnds、diamondFromEnds、triangleFromEnds)。輪郭は、他の閉じた領域と同じブロブレンダラに渡されます。Circle, oval, rectangle
open full size ↗Three flat fills from two points, each built from one seeded segment. The circle runs from its center to its edge; the oval and the rectangle read the endpoints as the corners of their bounding box.
Details
One contract: Every generator returns a closed counterclockwise contour, or null when the endpoints are too close to span a shape, so a degenerate click draws nothing.
Diamond and triangles
open full size ↗The diamond takes the endpoints as its long diagonal. The triangles stand on the segment with fixed interior angles (30-60-90 and 45-45-90); which corner takes which angle, and which side of the segment the apex lands on, are seeded.
Slit-scan shapes
open full size ↗The same shapes over the patterned test background, colored by SlitScanBlobRenderer: the background is sampled along one seeded line, every fragment reads the sample at its projection onto that line, and the result mixes with a flat base color. Each line of samples stretches into bands orthogonal to it, the way a slit-scan photograph stretches one slit over time.
SlitScanBlobRendererが塗ります。背景はシードで決まる1本の線に沿ってサンプリングされ、各フラグメントはその線への射影の位置にあるサンプルを読み、結果は平坦なベースの色と混ぜられます。サンプルの列はその線と直交する帯として引き伸ばされます。スリットスキャン写真が1本のスリットを時間方向に引き伸ばすのと同じです。Details
The sampling line: Seeded per shape, through the midpoint of the endpoints, so it always crosses the shape and the sampled colors come from under it.
The mix: The sample weight is a parameter; 0 is the flat base color, 1 is the pure slit-scan.
Slit-scan triangles
open full size ↗The diamond and the triangles under the same slit-scan coloring, over the same patterned background.
Try drawing
open full size ↗Draw with every shape on this page, in the drawing tool: the settings panel picks the shape and its sample mix exactly, the floating dials reroll the palette and walk a trail of rolled shapes, and Clear, Replay, and recording work as on the Drawing Tool Demo page. Each released gesture becomes one shape from its endpoints (fills never split at sharp turns; that is a stroke behavior). Every fill is the slit-scan, so shapes sample the canvas itself and stretch what is already drawn. The shape's size comes from the gesture, so the width dial and pen pressure leave it alone.