Created
April 11, 2019 14:42
-
-
Save amcdnl/ba22484d1e969c28fe848a86143a33a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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