html5-canvasPath (Syntax only)


Syntax

  • context.beginPath()
  • context.moveTo(startX,startY)
  • context.lineTo(endX,endY)
  • context.arc(centerX, centerY, radius, startingRadianAngle, endingRadianAngle)
  • context.quadraticCurveTo(controlX,controlY,endX,endY)
  • context.bezierCurveTo(controlX1,controlY1,controlX2,controlY2,endX,endY)
  • context.arcTo(pointX1, pointY1, pointX2, pointY2, radius)
  • context.rect(leftX, topY, width, height);
  • context.closePath()