Skip to content

canvas-constructor@0.1.6

Pre-release
Pre-release
Compare
Choose a tag to compare
@kyranet kyranet released this 11 Sep 21:24

Added

  • setStrokeWidth() to change stroke/line's width.
  • beginPath() to start making paths.
  • closePath() to start closing paths.
  • createLinearGradient() to create linear gradients.
  • createRadialGradient() to create radial gradients.
  • arc() and arcTo(), to create arcs.
  • quadraticCurveTo() to create quadratic Bèzier curves.
  • bezierCurveTo() to create cubic Bèzier curves.
  • lineTo() to connect lines.
  • moveTo() to move the starting point of a path to any (x, y) coordinates.

Changed

  • Added default '#000000' for the setStroke() method.
  • addImage() removed this.save() and this.restore() so users can use their own paths.

Fixed

  • Examples for measureText().