Skip to content
Luis Murillo Baltodano edited this page Aug 2, 2020 · 17 revisions

What is Canvas Preset?

A library to avoid boilerplating for creative coding

You could see it as an abstraction but it doesn't abstract the whole API as it provides the canvas instance and the CanvasRenderingContext2D for the developer to use it whenever needed

Why use Canvas Preset?

You avoid boilerplating when using the HTML5 Canvas API, your code looks cleaner, is easier to write, easier to read, you don't relay on frameworks to use it

What is cool about it?

You provide it with an object and it will handle the rendering. Also, It can rotate a shape made of canvas lines, get you the frequencies of an audio context and more... so you can focus on the logic

Clone this wiki locally