Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@amcdnl
Created April 11, 2019 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amcdnl/ba22484d1e969c28fe848a86143a33a0 to your computer and use it in GitHub Desktop.
Save amcdnl/ba22484d1e969c28fe848a86143a33a0 to your computer and use it in GitHub Desktop.
/*
ctx.beginPath();
ctx.moveTo(topLeft, 0);
ctx.lineTo(geom.width - topRight, 0);
ctx.lineTo(geom.width, geom.height - bottomRight);
ctx.lineTo(geom.width - bottomRight, geom.height);
ctx.lineTo(bottomLeft, geom.height);
ctx.lineTo(0, geom.height - bottomLeft);
ctx.lineTo(topLeft, 0);
ctx.strokeStyle = strokeStyle;
ctx.strokeWidth = strokeWidth;
ctx.fillStyle = fillStyle || 'transparent';
ctx.fill();
ctx.stroke();
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment