Skip to main content

Transform

Type Alias Transform 

Source
pub type Transform = [f32; 6];
Expand description

A 2-D affine transform, as the six coefficients [a, b, c, d, e, f] (kurbo Affine order: x' = a·x + c·y + e, y' = b·x + d·y + f). Translations are in logical px; the origin is applied at paint time (CSS default: box centre).