After seeing the amazing work done both in p5.js and Processing alike, I always wondered how they manage to work so intuitively and easily when compared to what their ‘raw’ graphics APIs look like.
This library can handle multiple canvases at once in the same namespace and encapsulates shapes and such to each canvas individually, where anything drawn is almost always considered a
Shape, all stored in the canvas object and rendered when told.
It also uses a lot of the new ES6 features including the use of imports (not really meant to be used without imports).
It’s currently quite rudimentary and clearly still has many features to be added, but otherwise, it’s still functional and you can do some neat stuff in it pretty easily.
I’d love for you to check it out and I’d very much appreciate any feedback/thoughts/criticism on the library!
Some simple Examples of what you can do with the library: canvas.knutsen.co
(be sure to check out their respective source at the GitHub repo)
The Project is located here: github.com/Demonstrandum/BasicCanvas