Integrated the HTML canvas backend and added module functors so that backends can be created easily.
I went with JSOO as Melange seems immature and documentation is less than ideal. It was unclear how Melange would integrate with a library that targets both native and the browser.
Adding new backends should now be easy as there's a Joy module functor that takes a Backend module signature and injects geometry/transformation/types modularly. The Cairo backend is now available under Joy.SVG and the canvas backend Joy.Canvas.
Integrated the HTML canvas backend and added module functors so that backends can be created easily.
I went with JSOO as Melange seems immature and documentation is less than ideal. It was unclear how Melange would integrate with a library that targets both native and the browser.
Adding new backends should now be easy as there's a
Joy
module functor that takes aBackend
module signature and injects geometry/transformation/types modularly. The Cairo backend is now available under Joy.SVG and the canvas backend Joy.Canvas.