Name
CanvasPattern — an image-based pattern for use in a canvas
Description
A CanvasPattern object is returned by the
createPattern()
method of a CanvasRenderingContext2D
object. A CanvasPattern object may be used as the value of the
strokeStyle
and fillStyle
properties of a CanvasRenderingContext2D object.
A CanvasPattern object has no properties or methods of its own. See CRC.createPattern() for details on how to create one.
See Also
Get Canvas Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.