new Pattern()
Pattern object draw a image repeated as a pattern.
Its similar to the Image class but the image can be repeat infinitly.
- Source:
Members
box
Box object containing the size of the object.
- Source:
image
Image source DOM element.
- Source:
repetition
A DOMString indicating how to repeat the pattern image.
- Source:
Methods
setImage()
Set the image of the object.
Automatically sets the box size to match the image.
- Source: