Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <bryan@olenepal.org>2009-08-31 08:22:16 (GMT)
committer root <bryan@olenepal.org>2009-08-31 08:22:16 (GMT)
commit94be8b6d0b68b198eea02be4179c213e52a7f3c9 (patch)
treeb55f4f018b33d9fc50e47f09a205fbc7db032df2
parentb005bcdcc1f3951f9716988c680ce16426d3205e (diff)
trying mytest1.html w/ 0 width for canvas element
-rwxr-xr-xexperiments/banana.pngbin0 -> 5277 bytes
-rw-r--r--experiments/mytest1.html12
2 files changed, 6 insertions, 6 deletions
diff --git a/experiments/banana.png b/experiments/banana.png
new file mode 100755
index 0000000..7600af1
--- /dev/null
+++ b/experiments/banana.png
Binary files differ
diff --git a/experiments/mytest1.html b/experiments/mytest1.html
index 012bb8d..51f2437 100644
--- a/experiments/mytest1.html
+++ b/experiments/mytest1.html
@@ -14,8 +14,8 @@
var ballImg = document.getElementById('ball');
var bananaImg = document.getElementById('banana');
- ltCtx.drawImage(ballImg, 0, 0);
-
+ ltCtx.drawImage(ballImg, 0, 0, 77, 77);
+ ltCtx.drawImage(ballImg, 77, 100, 77, 77);
}, false);
@@ -45,16 +45,16 @@
}
.canvas {
- width: 300px;
- height: 300px;
+// width: 300px;
+// height: 300px;
position: absolute;
top: 10%;
}
-#image {
+/*#image {
width: 0px;
height: 0px;
-}
+}*/
</style>