# This models some hostile script. We will allow it to run the first time # and then only when n is changed is the scientist warned that the # script has changed. n=4 randomSeed(5334) from org.das2.graph import Painter class BlurPainter( Painter ): def paint( self, g ): c= g.background g.color= Color( c.red,c.green,c.blue,200 ) w= 1000 h= 1000 for i in xrange(0,h,10): i=i + int(rand()*10) g.drawLine(0,i,w,i) g.drawLine(0,i+1,w,i+1) dom.canvases[0].controller.dasCanvas.addTopDecorator(BlurPainter())