Using SVG

Circle Rect

SVG elements are controllable and scalable




Using Canvas

Canvas is an image drawn by JavaScript





Ref: Eloquent JavaScript, Chap 17