DEV Community

Discussion on: Who's looking for open source contributors? (September 17 edition)

Collapse
 
johnanisere profile image
John Anisere

Hi Guillaume,
Why would I use Pencil.js as opposed to SVGs ?

Collapse
 
gmartigny profile image
Guillaume Martigny

The SVG syntax is part of the problem that push me to do Pencil.js (along with p5).
I love the OOP syntax, maybe too much, but that's how I think. I want to be able to add a Rectangle instance to a Scene for example.

The SVG path syntaxe is a joke IMO. But it's compatible with Pencil.js Path class.
Shapes are ok, but lack the reactiveness of programmatic Javascript.

Check the examples for more details.