In order to simplify the complexity of HTML5 Canvas coding, various libraries exist and Fabric.js is another alternative.

Besides offering methods for creating objects and manipulating them, the framework also works as a SVG-to-Canvas parser (and vice-versa).

Fabric.js

The created objects can be moved, scaled or rotated with mouse and we can transform their properties too (z-index, transparency, color, etc.).

Fabric.js also supports text and applying filters to images.

The full canvas can be serialized into a JSON string which is great for saving it and reloading when needed.

WebResourcesDepot Feed