Skip to main content

offset_subpaths

Function offset_subpaths 

Source
pub(crate) fn offset_subpaths(
    paths: &[SubPath],
    dx: f32,
    dy: f32,
) -> Vec<SubPath>
Expand description

パスを (dx, dy) だけ平行移動した新しい副パス列を生成する(Canvas 2D Shadow用)。