Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

MethodDescription
scale()Scales the current drawing bigger or smaller
rotate()Rotates the current drawing
translate()Remaps the (0,0) position on the canvas
transform()Replaces the current transformation matrix for the drawing
setTransform()Resets the current transform to the identity matrix. Then runs transform()


Text

PropertyDescription
fontSets or returns the current font properties for text content
textAlignSets or returns the current alignment for text content
textBaseline

Sets or returns the current text baseline used when drawing text


MethodDescription
fillText()Draws "filled" text on the canvas
strokeText()Draws text on the canvas (no fill)
measureText()Returns an object that contains the width of the specified text


Image Drawing

Pixel Manipulation

...