OSDN Git Service
(root)
/
flapp
/
flapp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c5736b
)
setTransform を追加
author
Yoshihiro Yamazaki
<yoya@awm.jp>
Sat, 22 Dec 2012 10:43:08 +0000
(19:43 +0900)
committer
Yoshihiro Yamazaki
<yoya@awm.jp>
Sat, 22 Dec 2012 10:43:08 +0000
(19:43 +0900)
src/canvas.js
patch
|
blob
|
history
diff --git
a/src/canvas.js
b/src/canvas.js
index
79ee603
..
38a2095
100644
(file)
--- a/
src/canvas.js
+++ b/
src/canvas.js
@@
-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]);
+ }
+}
+
});