AlgNet/GeoNet: A Union City School District Summer Enrichment Program
Using technology not simply to do things better, but to do better things.

PROGRAM ART

The following program uses the pixel on command to draw an image from the lists controlling the screen display.

PROGRAM:ART

:ClrHome
:AxesOff
:ClrDraw
:FnOff
:For(I,1,_____)
:For(H,2*L1(I)-1,2*L1(I))
:For(V,2*L2(I)-1,2*L2(I))
:Pxl-On(H,V)
:End
:End
:End

Notes:

  1. The value entered in the blank in the first FOR loop is the total number of shaded squares in the screen planning sheet.
  2. The second loop controls the horizontal placement on the screen, so store the row numbers in L1.
  3. The third loop controls the vertical placement on the screen, so store the column numbers in L2.

Return to Calculator Art
THE MATH FORUM: Creating community, developing resources, constructing knowledge...