JavaScript Drawing Programmer

Here is the Draw Surface:

Usage: All these commands have to be typed into the web console of your browser. How to open the Web Console?

Code Examples:

i=0;
while(i<100){ drawbar(Math.random()*400, Math.random()*200, 10, 10, "blue"); i=i+1; }

i=0;
while(i<200){ drawline(0, i, 200-i, 0, "rgb(255,0,0)"); i=i+10; }

drawtext(200, 100, "This is Random","green");