Graphic library for both canvas2d and webgl drawing