OSDN Git Service

setTransform を追加
authorYoshihiro Yamazaki <yoya@awm.jp>
Sat, 22 Dec 2012 10:43:08 +0000 (19:43 +0900)
committerYoshihiro Yamazaki <yoya@awm.jp>
Sat, 22 Dec 2012 10:43:08 +0000 (19:43 +0900)
src/canvas.js

index 79ee603..38a2095 100644 (file)
@@ -10,4 +10,10 @@ FlappCanvas = function(canvas) {
     this.ctx = canvas.getContext('2d');
 };
 
+FlappCanvas.prototype = {
+    setTransform: function(matrix) {
+       this.ctx.setTransform(matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]);
+    }
+}
+
 });