CanvasPattern
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
CanvasPattern
インターフェイスは、画像、キャンバス、動画をもとに生成される不透明オブジェクトを表し、CanvasRenderingContext2D.createPattern()
メソッドによって作成されます。
fillStyle
または strokeStyle
として使用することができます。
インスタンスプロパティ
不透明なオブジェクトを表し、公開されているプロパティはありません。
メソッド
継承されたメソッドはありません。
CanvasPattern.setTransform()
-
パターンに線形の座標変換を表す
DOMMatrix
を適用します。
仕様書
Specification |
---|
HTML # canvaspattern |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
CanvasPattern | ||||||||||||
setTransform | ||||||||||||
Accepts a DOMMatrix2DInit -like object parameter |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
関連情報
CanvasRenderingContext2D.createPattern()
- The
<canvas>
要素と関連するインターフェイスであるHTMLCanvasElement