meo-skia-canvas
    Preparing search index...

    Class CanvasPattern

    An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method.

    MDN Reference

    Index
    • Set the transform the tiled image is drawn under, replacing any previous one.

      Takes a DOMMatrix, anything new DOMMatrix() accepts -- a CSS transform string, an {a, b, c, d, e, f} object, a 6- or 16-element array -- or the six numbers themselves. The transform applies to the pattern, not to the context, so it survives save() and restore().

      MDN Reference

      Parameters

      Returns void

    • Set the transform the tiled image is drawn under, replacing any previous one.

      Takes a DOMMatrix, anything new DOMMatrix() accepts -- a CSS transform string, an {a, b, c, d, e, f} object, a 6- or 16-element array -- or the six numbers themselves. The transform applies to the pattern, not to the context, so it survives save() and restore().

      MDN Reference

      Parameters

      • a: number
      • b: number
      • c: number
      • d: number
      • e: number
      • f: number

      Returns void