-- chelsea Christiani

-- zebra, 2004

 

on startmovie

  repeat with y = 1 to 600

    repeat with x = 1 to 800

      toneRange = 200

      diff = 50

     

      sx = cos(((50*pi())*x)/800)+cos(x*x)--number * to pi changes number

      sy = cos(((15*pi())*y)/600)+cos(x)

      z = (toneRange*(sx*sy)) + diff--*255 makes it not fade

      r = z

      g = z

      b = z

      (the stage).image.setpixel(x,y,rgb(r,g,b))

    end repeat

    updatestage

  end repeat

  pause--wait for program to do something

end