User:Michael Murtaugh: Difference between revisions
No edit summary |
No edit summary |
||
| Line 13: | Line 13: | ||
x = 10; | x = 10; | ||
while(x<300) { | while(x<300) { | ||
p.strokeRect(x, x, 20, 20); | |||
x += 20; | |||
} | } | ||
} | } | ||
</canvas> | </canvas> | ||
Revision as of 15:09, 25 September 2012
Hello.
We talked about how to add numbers today.
My technical plan can be found here.
<canvas width=500 height=300 showsrc=true> function draw() {
c = document.getElementById("canvas");
p = c.getContext('2d');
x = 10;
while(x<300) {
p.strokeRect(x, x, 20, 20);
x += 20;
}
} </canvas>