b = Bitmap( 100, 100 ) for x=0, 100, 10 do for y=0, 100, 10 do b.rect( x, y, x+10, y+10, Color(random(255),random(255),random(255)) ) end end b.save( cf.attributes.dir..'example01d.png' )