Skip to main content

snap

Function snap 

Source
pub fn snap(w: f32, ppp: f32) -> f32
Expand description

A width of w points snapped at ppp: a whole number of physical pixels, at least one, back in points. A width of zero (or less) stays zero: a stroke set to nothing is not drawn as a hairline.