mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-14 13:27:13 +00:00
Adds paint_element() that recursively renders a scene graph Element onto a Skia Canvas. Supports: - Visibility culling (skip invisible elements) - Position translation + CSS-like transform (rotate, scale around center) - Layer-based opacity blending (save_layer_alpha) - Overflow clipping with rounded rects - Background fill (rect or rrect depending on border_radius) - Text rendering via FontMgr default typeface - Recursive child painting Helper functions: to_color4f, to_sk_rect, make_rrect. Four new tests covering background+text, border-radius+opacity pixel verification, transforms, and invisible element skipping.