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.

Jump to: Statements Referenced by

Statements (48)

Predicate Object
instanceOf Canvas2DAPIObject
WebAPIInterface
availableIn WindowOrWorkerGlobalScope (via OffscreenCanvas)
belongsToNamespace Canvas 2D Context NERFINISHED
browserSupport Chrome NERFINISHED
Edge NERFINISHED
Firefox NERFINISHED
Opera NERFINISHED
Safari NERFINISHED
canBeCreatedFrom HTMLCanvasElement NERFINISHED
HTMLImageElement
HTMLVideoElement
ImageBitmap NERFINISHED
OffscreenCanvas NERFINISHED
canBeUsedFor complex backgrounds
textures
tiled images
createdBy CanvasRenderingContext2D.createPattern NERFINISHED
definedIn HTML Living Standard NERFINISHED
WHATWG HTML specification NERFINISHED
hasMethod setTransform
hasParameter repetition
introducedIn HTML5 NERFINISHED
isFillStyleType true
isNotConstructibleDirectly true
isRepeatable true
isStrokeStyleType true
methodBelongsTo CanvasPattern.setTransform NERFINISHED
mustBeCreatedVia CanvasRenderingContext2D.createPattern NERFINISHED
partOf HTMLCanvasElement 2D context API
patternSourceType bitmap
canvas
image
video
relatedInterface CanvasGradient
CanvasRenderingContext2D NERFINISHED
repetitionValues no-repeat
repeat
repeat-x
repeat-y
setTransformArgumentType DOMMatrix NERFINISHED
DOMMatrix2DInit
supportsTransformations true GENERATED
usedFor filling shapes
representing repeating images or patterns
stroking paths
usedWithProperty CanvasRenderingContext2D.fillStyle NERFINISHED
CanvasRenderingContext2D.strokeStyle

Referenced by (1)

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

canvas 2D API supportsPattern CanvasPattern
subject surface form: Canvas 2D API