28 ms·
Check out the approach that Pax is taking.[0] Pax renders vector graphics to canvas layers and composites + clips + occludes native elements (web DOM nodes, iO
by zackbrown 2y ago
Check out the approach that Pax is taking.[0]
Pax renders vector graphics to canvas layers and composites + clips + occludes native elements (web DOM nodes, iOS SwiftUI Text elements, etc.) in the same space to make a cohesive scene.
This solves accessibility and SEO, as well as dramatically reducing runtime size (~100KB WASM network footprint) because text rendering and atomic native UI elements don't need to be reinvented.
To my knowledge we're the only ones taking this particular approach so far (I'm on the team behind Pax) but it works quite well. Yes it was a lot of work.
[0] see pax.dev or check out a simple example: https://static.pax.dev/space-game/ https://static.pax.dev/space-game/ ; source code for space game in examples on github https://www.github.com/paxengine/pax https://www.github.com/paxengine/pax