Is there a possibility to fill a rectangle with a picture and not with color in jCanvas?
I would repeat the pic in the rectangle like in css for example:
background-repeat: repeat;
Is there a possibility to fill a rectangle with a picture and not with color in jCanvas?
I would repeat the pic in the rectangle like in css for example:
background-repeat: repeat;
To fill a pattern with an image, use the createPattern()
method built into jCanvas. However, due to the limitations of the HTML5 canvas API, you cannot offset a pattern (so as to move it with a draggable layer).
-Caleb