This page is a comparison of the same shapes being drawn with three web based 2D drawing approaches. You can see the code here