Expand description
Deterministic ink materials and pressure-sensitive drawing.
Structs§
- Brush
Stroke - Pressure-sensitive pen stroke, recorded as nonzero path fills. This is the single brush
implementation:
BrushStroke::newcaptures the defaults of a fixed-angle elliptical nib andBrushStrokeBuilderrefines them (pressure curves, caps, bristles, ink, timing). A built stroke is immutable; its baked material is cached on the stroke alone, andwritereveals share that cache. - Brush
Stroke Builder - Configures a
BrushStroke;buildvalidates it and returns the immutable stroke. - Brush
Timing - Stateless arc timing with a monotone progress curve and pauses between subpaths.
- Ink
- A deterministic ink material for strokes and even-odd path fills.
- InkFill
- Bounded ink fill. Kurbo flattens the original contours; signed boundary
distance and the existing
Inkmaterial kernel produce a RGBA texture. The texture includes feathering and is emitted as one rectangle fill. ThePaint(a color, gradient or pattern) colors each texel before material attenuation. At most 4096 edges, 262144 texels and 32 million edge/texel evaluations are accepted. Paper is sampled in paper space and there is no fluid simulation, as forBrushStroke. Stroke-only ink effects are ignored; seeInk. - Input
Sample - One recorded pen sample. Time is relative to the first input sample.
- Pigment
Painting - Immutable opt-in pigment composition, shared by CPU/GPU as one baked material.
- Stroke
Font - Bounded single-line Latin lettering built from original segment geometry.
Enums§
- Brush
Cap - Analytic pressure treatment at the endpoints of a variable-width
BrushStroke. - Brush
Preset - Composable brush geometry/material presets; all settings remain overridable on the returned builder.
- NibMode
- Per-sample nib orientation for explicitly extended strokes.
- Paper
- The sheet an
Inkis absorbed into, set withInk::paper. - Pigment
Mix - Optional color mixing approximation, separate from renderer blend modes.