// Visual illusion (2B) re-drawn as a checkerboard.
// I was thinking about how a lot of the Surrealist images were based on
motion and time,
// and also the kind of images where one element didn't quite fit in with
the rest and appeared
// very out-of-place.

// The squares here are very boxy and stark; the image is static.
// The viewer probably wonders why this is surrealist and moves the mouse
around 
// in an attempt to make something else happen.  Nothing appears, though,
until the program
// is stopped, and then circles of all sizes appear where the mouse was
moved.
// It's kind of like, "Hey, where did those circles come from?" which I
think is evocative of 
// the surrealist theme, since the circles don't match with the boxes at
all,
// and they also appear when you are least expecting them.


load dbngraphics.dbn

paper 0
pen 100

command square D E F
{
   repeat D D (D + 20)
   {
      line E D F D
   }
}

//column one
square 0 0 20
square 40 0 20
square 80 0 20

//column two
square 20 20 40
square 60 20 40

//column three
square 0 40 60
square 40 40 60
square 80 40 60

//column four
square 20 60 80
square 60 60 80

//column five
square 0 80 100
square 40 80 100
square 80 80 100

forever
{
   repeat A 0 100
   {
      pen A
      set H 
      set V 
      circle (H) (V) A A
   }
}