Graphics DSL is a small library to help write canvas drawing code in a more declarative style.
The main function of this library is render2d(g, dsl)
-
The first argument is the
CanvasRenderingContext2D
to draw to. -
The second one is a structure must be one of the following: