Please check the GitHub main page of the Canvas2D library, there's a bunch of useful information out there.
For a first-time learning tutorial go there.
To learn about the Design and Architecture of the Canvas2D go there.
To learn how to develop your own Primitive type, it's here.
This section contains useful links for you to get started on different concepts that are useful to grasp.