Skip to main content

rotated

Function rotated 

Source
fn rotated(
    painter: &Painter,
    pos: Pos2,
    anchor: Align2,
    run: Run<'_>,
    angle: Angle,
) -> Shape
Expand description

A run rotated by angle radians about pos via anchor, nudged by the residual between epaint’s pixel-snapped baseline and the font’s unrounded ascent so the run moves continuously as zoom sweeps.