files/en-us/web/api/canvaspattern/index.md
{{APIRef("Canvas API")}}{{AvailableInWorkers}}
The CanvasPattern interface represents an opaque object describing a pattern, based on an image, a canvas, or a video, created by the {{domxref("CanvasRenderingContext2D.createPattern()")}} method.
It can be used as a {{domxref("CanvasRenderingContext2D.fillStyle", "fillStyle")}} or {{domxref("CanvasRenderingContext2D.strokeStyle", "strokeStyle")}}.
As an opaque object, this has no exposed property.
There are no inherited method.
{{Specifications}}
{{Compat}}