You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.