Pattern.js 298 B

12345678910111213
  1. var Pattern = (function () {
  2. function Pattern(image, repeat) {
  3. this.image = image;
  4. this.repeat = repeat;
  5. this.x = 0;
  6. this.y = 0;
  7. this.rotation = 0;
  8. this.scaleX = 1;
  9. this.scaleY = 1;
  10. }
  11. return Pattern;
  12. }());
  13. export default Pattern;