The HTML canvas API.
Return a rendering context, for example 2d or webgl. The same object is returned when invoked subsequent times.
Creates a Blob object representing a file containing the image in the canvas, and invokes a callback with a handle to that object.
Returns a data uri string.
The 2d rendering context.
Save state. Mirror with a call to .restore()
.
Restores state to the previous .save()
call.
Apply scale transformation.
Apply rotation transformation.
Apply translation transformation.
Set fill style to value
, a CSS color string,
CanvasGradient
, or CanvasPattern
.
Set fill style to value
, a CSS color string,
CanvasGradient
, or CanvasPattern
.
Clears all pixels on the canvas in the given rectangle to transparent black.
Paints the given rectangle onto the canvas, using the current fill style.
Paints the box that outlines the given rectangle onto the canvas, using the current stroke style.
Add an arc path with the given radius
, startAngle
and endAngle
.
Return a TextMetrics
object with the metrics of the given str
in the current font.
.width
.actualBoundingBoxLeft
.actualBoundingBoxRight
.fontBoundingBoxAscent
.fontBoundingBoxDescent
.actualBoundingBoxAscent
.actualBoundingBoxDescent
.emHeightAscent
.emHeightDescent
.hangingBaseline
.alphabeticBaseline
.ideographicBaseline
Return a CanvasGradient
object painted from (x0, y0)
to (x1, y1)
.
Return a CanvasGradient
object that represents a radial gradient that paints along
the cone given by the circles represented by the arguments.
Canvas gradient object.
Add color stop at offset
with the given color
.
Visit http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html