User:Michael Murtaugh: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 11: Line 11:
<canvas width=500 height=500 showsrc=true>
<canvas width=500 height=500 showsrc=true>
function draw() {
function draw() {
   c = document.getElementById("c");
   c = document.getElementById("canvas");
   p = c.getContext('2d');
   p = c.getContext('2d');
   x = 10;
   x = 10;

Revision as of 13:59, 25 September 2012

Hello.

We talked about how to add numbers today.

My technical plan can be found here.

User:Michael_Murtaugh

http://vimeo.com/45743577

<canvas width=500 height=500 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>