ctx-render-polyline
render line segments using html5 2d canvas
install
npm install ctx-render-polyline
use
var center = ;var poly = var ctx = document; documentbody; ctxfillStyle = "black";ctx; ; ctx; // wound CCW ; // wound CW ; ctxfillStyle = "orange"; ctx
results in