Sunday, November 16, 2008

Info I Seek

PHP Code Please
Purpose: learning to use variables and looping to draw or paint an image.

  1. create an image (define the image area)
  2. define variables r,g,b, or equivalent as appropriate
  3. assign zero to r,g, and b
  4. define variables rownumber and columnnumber
  5. assign zero to rownumber and columnumber
  6. do while rownumber
  7. assign color (r,g,b) to (rownumber,columnumber)
  8. increment all the variables
  9. do loop
  10. display the image on the web page

No comments: