Your surprise sucks

master
Joshua Sigona 4 years ago
parent dea6748034
commit 5993f45dc9
  1. 2
      src/skilltree/skillTree.js

@ -14,7 +14,7 @@ function SkillTree(p) {
const canvas = canvasRef.current const canvas = canvasRef.current
const context = canvas.getContext('2d') const context = canvas.getContext('2d')
context.clearRect(0,0,width,height) context.clearRect(0,0,width,height)
context.fillStyle = '#AA6666' context.fillStyle = 'rgba(100,100,100,0.5)'
context.strokeStyle=p.strokeStyle context.strokeStyle=p.strokeStyle
context.lineWidth=p.lineWidth //https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineWidth context.lineWidth=p.lineWidth //https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineWidth
context.setLineDash(p.lineDash) //https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash context.setLineDash(p.lineDash) //https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash

Loading…
Cancel
Save