CanvasPattern

E868166

CanvasPattern is an object in the HTML5 Canvas 2D API that represents a repeating image or pattern used for filling shapes and strokes.

All labels observed (5)

How this entity was disambiguated

Statements (48)

Predicate Object
instanceOf Canvas2DAPIObject
WebAPIInterface
availableIn WindowOrWorkerGlobalScope (via OffscreenCanvas)
belongsToNamespace Canvas 2D Context
linked to: CanvasPattern
browserSupport Chrome
linked to: Google Chrome

Edge
Firefox
linked to: Mozilla Firefox

Opera
Safari
canBeCreatedFrom HTMLCanvasElement
HTMLImageElement
HTMLVideoElement
ImageBitmap
OffscreenCanvas
canBeUsedFor complex backgrounds
textures
tiled images
createdBy CanvasRenderingContext2D.createPattern
linked to: CanvasPattern
definedIn HTML Living Standard
WHATWG HTML specification
hasMethod setTransform
hasParameter repetition
introducedIn HTML5
isFillStyleType true
isNotConstructibleDirectly true
isRepeatable true
isStrokeStyleType true
methodBelongsTo CanvasPattern.setTransform
linked to: CanvasPattern
mustBeCreatedVia CanvasRenderingContext2D.createPattern
linked to: CanvasPattern
partOf HTMLCanvasElement 2D context API
patternSourceType bitmap
canvas
image
video
relatedInterface CanvasGradient
CanvasRenderingContext2D
linked to: canvas 2D API
repetitionValues no-repeat
repeat
repeat-x
repeat-y
setTransformArgumentType DOMMatrix
DOMMatrix2DInit
supportsTransformations true
usedFor filling shapes
representing repeating images or patterns
stroking paths
usedWithProperty CanvasRenderingContext2D.fillStyle
linked to: CanvasPattern

CanvasRenderingContext2D.strokeStyle

How these facts were elicited

Referenced by (6)

Full triples — surface form annotated when it differs from this entity's canonical label.

Canvas 2D API supportsPattern CanvasPattern
subject linked to: canvas 2D API
CanvasPattern createdBy CanvasRenderingContext2D.createPattern
linked to: CanvasPattern
CanvasPattern usedWithProperty CanvasRenderingContext2D.fillStyle
linked to: CanvasPattern
CanvasPattern methodBelongsTo CanvasPattern.setTransform
linked to: CanvasPattern
CanvasPattern belongsToNamespace Canvas 2D Context
linked to: CanvasPattern
CanvasPattern mustBeCreatedVia CanvasRenderingContext2D.createPattern
linked to: CanvasPattern