home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 6
/
AACD06.ISO
/
AACD
/
Graphics
/
VideoEasel
/
CAMRexx
/
Diffusion.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-03-30
|
370b
|
19 lines
/* Diffusion by an idea of Toffoli, in CAMRexx by THOR */
MakeAlgorithm:
PLANEALGORITHM margolus hvphases
return
MakePlane:
if plane=0 then; do
rand=(center_ ^ cw_ ^ ccw_ ^ opp_)
if rand then SETPLANE cw
else SETPLANE ccw
end
if plane=1 then; do
new=(center_ & cw_) ^ opp_ ^ ccw_
SETPLANE new
end
return