/jPolygon

A javascript library to draw polygons over an image using HTML5 canvas

Primary LanguageJavaScriptMIT LicenseMIT

jPolygon is a javascript library that allows drawing a polygon in a HTML5 canvas over an image. It supports undo and clear funcions. To finalize the polygon press CTRL + mouse Click.

Technologies used:

  • pure javascript (no jQuery, etc...)
  • HTML5 canvas

Requirements:

  • Any browser that supports HTML5 canvas

Main Features:

  • Mark points with a square.
  • Undo function implementation.
  • Clear function implementation.
  • When a polygon is created, fill the content with a transparent color.

License:

  • MIT license

URL:

  • Project sources are hosted on Github
  • A live demo is available here