home *** CD-ROM | disk | FTP | other *** search
- /* Verzerrung 2
- * von A. Pratsch
- * Copyright (c) 1995
- */
-
- options results
-
- activatewindow current
- source = result
-
- getinfo stem a.
-
- new a.picwidth a.picheight "Destination"
- dest = result
- movewindow l a.leftedge t a.topedge
-
- activatewindow winid source quiet
- scalemode linear
- paintmode mat
-
- width = random(1,a.picwidth)
- diff = random(0,2)-1
- fac = random(1,10)/100+1
- times = random(1,10)
- do y=0 to a.picheight-1
- activatewindow winid source quiet
- cutbox 0 y a.picwidth 1
- sethandle tle
- activatewindow winid dest quiet
- if times > 0 then times=times-1
- else do
- diff = random(0,4)-2
- times = random(1,10)
- end
- if (width + diff) > a.picwidth then diff = -diff
- if (width - diff) > a.picwidth then diff = -diff
- if (width + diff) < 0 then diff = -diff
- if (width - diff) < 0 then diff = -diff
- width = width + diff
- diff = diff*fac
- resizebrush w trunc(width)
- point 0 y
- end
- freebrush
-
- activatewindow winid dest
-