You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2D affine transforms in draw: Affine (CSS matrix(a, b, c, d, e, f) convention), push_transform / pop_transform, current_transform, and the helpers affine_mul, affine_translate, affine_scale, affine_rotate, affine_skew, affine_around, affine_apply, affine_apply_vector, affine_inverse, affine_bounds, affine_determinant, affine_scale_factor, affine_is_identity, affine_is_scale_translate, affine_from_xform. Rects (rounded, borders, shadows), gradients, text and images follow the transform; rotated and
skewed shapes are evaluated in local space in the pixel shader (exact corners, 1 px antialiasing). Scaled text is
re-rasterized at its on-screen size.
Rounded / transformed clips: draw.push_clip_rounded(dc, r, radii) (per-pixel, antialiased, nests up to 8
deep); push_clip under rotation or skew clips the exact rect. draw.current_clip.
Images: render.create_texture_rgba, update_texture_rgba (sRGB, straight alpha in; stored premultiplied in
linear light), destroy_texture, texture_size, max_texture_size; mip chains regenerated after updates. draw.image, draw.image_corners (rounded corners, sub-rectangles, tint) and draw.image_tiled (seamless
repeat). Images and glyphs share batches.