Still in building phase, it already has a lots of features to try out.
Drawing in a canvas is not trivial.
First of all, the goal is to ease the use of canvas in a browser; allowing anyone to use it with its comprehensible syntax and extensible options.
OOP is great, OOP is almighty, OOP saves lives !
Others library exists, but none with a beautiful OOP syntax. It makes code look natural.
Splitting the whole code into modules make everything cleaner.
It also allow you to grab only what you need or replace what you don't like.
A complete documentation goes a long way to help developers.
All functions are assured to have a description and also typed arguments and returns.
Here's a "hello world" kind example.
Based on events, it's easy to build interactivity.
There's a lot more options (rotation, cursor, clip ...) and shapes (Star, Image, Path ...) for you to discover.
I event start to add complexe component like user inputs (button, checkbox, slider ...) and it works well so far.
There is more example in the Pencil.js codepen collection. If you create something nice, contact me so I can add yours too.
What do you think ?
First of all, I'm looking for feedback. I would like to build an API that's usable by beginners, but I know it too well. If you have any suggestion or encounter any bugs, let me know.
If you liked it, please, take the time to upvote it.
Thanks for your time and see ya.