Skip to main content

DEFAULT_SAMPLES

Constant DEFAULT_SAMPLES 

Source
pub const DEFAULT_SAMPLES: usize = 64;
Expand description

The arity a [path] resamples to when it names none.

The arity at which a smooth contour stops reading as faceted: the chord sagitta of a 64-gon inscribed in the normalized figure is under a pixel at 1080p, and at 32 it is around two and a half. A polygonal silhouette wants far fewer and should say so — samples is a lever downward, because MAX_SAMPLES leaves it none upward.