123456789101112131415 |
- var Pattern = function (image, repeat) {
-
-
- this.image = image;
- this.repeat = repeat;
- this.type = 'pattern';
- };
- Pattern.prototype.getCanvasPattern = function (ctx) {
- return ctx.createPattern(this.image, this.repeat || 'repeat');
- };
- var _default = Pattern;
- module.exports = _default;
|