Purpose: learning to use variables and looping to draw or paint an image.
- create an image (define the image area)
- define variables r,g,b, or equivalent as appropriate
- assign zero to r,g, and b
- define variables rownumber and columnnumber
- assign zero to rownumber and columnumber
- do while rownumber
- assign color (r,g,b) to (rownumber,columnumber)
- increment all the variables
- do loop
- display the image on the web page
No comments:
Post a Comment