drawing::stroke_utils

Functions

stroke_width_pixels

pub fn stroke_width_pixels(stroke: &Stroke) -> f64

Resolves a stroke width as pixels.


stroked_outline_path

pub fn stroked_outline_path(centerline: &BezPath, stroke: &Stroke) -> Option<BezPath>

Builds the filled outline path corresponding to a stroked centerline path.

This is useful for hit testing, masking, and occlusion, where stroke coverage needs to be treated as fill geometry.