Open Milo123459 opened 3 years ago
Any updates? Cc @samizdatco
It's definitely easier said than done since the canvas API exists as much in the Javascript-interfacing code as in the underlying Rust objects (which present an abstraction much closer to Skia itself). And, as the folks at rust-skia mentioned, the interface offered by Skia is deeply canvas inspired as it is—plus the skia-safe
API is much more idiomatically Rust-like than a port of the the Javascript API could be.
If anyone is interested in prototyping out what a Rust ‘canvas’ API could look like I'd be glad to look it over, but for now I'm having trouble seeing what it would offer that rust-skia
does not.
Also: have you looked at Piet? It's not canvas, but it offers a simple and extremely Rust-ian approach to programmatic drawing.
I'll have a look at piet, thanks! I just think having a similar API would be useful.
This seems like the perfect place to put this feature request, and would be an amazing feature to have. A node-canvas like API in Rust, powered by Skia.