JackTheRussel
Programmer
Hi.
I noticed an example where you can give parameters:
(w,y,width,height) and when you press the button it draw rectangle into screen.
I don't have experience on javascript so could some show me an example how I can draw an rectangle into screen ?
I don't need any buttons, just simple example which draw an rectangle ?
I would be very pleased.
I have tried to do something like this, but it's not working:
I noticed an example where you can give parameters:
(w,y,width,height) and when you press the button it draw rectangle into screen.
I don't have experience on javascript so could some show me an example how I can draw an rectangle into screen ?
I don't need any buttons, just simple example which draw an rectangle ?
I would be very pleased.
I have tried to do something like this, but it's not working:
Code:
<html>
<body>
<script type="text/javascript">
var jg = new jsGraphics();
jg.drawRect(30, 35, 10, 10);
</script>
<p>
This draws an rectangle
</p>
</body>
</html>