Skip to content

[email protected]

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

Added

  • save() To save the current state onto a stack.
  • rotate() To add a rotation to the transformation matrix.
  • scale() To perform scaling transformations.
  • traslate() To perform translating transformations.
  • fill() To fill the current/given path.
  • stroke() To stroke the current/given path.
  • addStrokeText() To add stroked text.
  • measureText() To measure in pixels a text. Be careful, if you do not
    provide a callback (second argument), this method will return an Integer value
    instead of being chainable.
  • setTextBaseline() To set the text's baseline.
  • setShadowOffsetX() To set the shadow offset for the axis X.
  • setShadowOffsetY() To set the shadow offset for the axis Y.
  • setGlobalAlpha() To set the global alpha value for the next elements.
  • clearCircle() To clear the pixels with a circle shape.
  • clearPixels() To clear the pixels with a rectangle shape. (Usage is
    identical to addRect()).

Changed

  • Breaking | fillRect() -> addRect() | To keep consistency.
  • addText() now accepts a third argument: maxWidth.
  • addImage() now saves and restores the context.

Fixed

  • addRoundImage() now points to addImage() with the correct arguments.
  • addBevelImage() now points to addImage() with the correct arguments.