How to render multiple graphical primitives into a canvas?
At the moment I have a regular class Primitive, which has a draw () method.
Accordingly, the stack layers with classes. I plan on doing observer to track changes layers. If something changed, redraw all the layers.
At the moment I see a few things - using requestAnimationFrame to make rendering more responsive.
How things normally work?