home *** CD-ROM | disk | FTP | other *** search
- [C.CNV]
- [Include #%]
- [G. Cisneros, 25.8.86]
-
- [nest]
- (()(
- (2.1.1.0.) 0
- )()(
- (,(WHILE,(0 1),(0),<0>.<1>,<<
- >>(WHILE,(2 3),(0),<2>.<3>,<<
- >>(WHILE,(4 5),(0),<4>.<5>,<<
- >>(WHILE,(6 7),(0),<6>.<7>,<<
- >>(WHILE,(8 9),(0),<8>.<9>,<<
- >>(g,(e,(#f,<(><0>+<2>+<4>+<6>+<8><)>%4))),<<
- >><9>),<7>),<5>),<3>),<1>));
- )) a
-
- [tiny vector increments]
- (()()()(
- (0,2<,>0);
- (1,0<,>2);
- (2,-2<,>0);
- (3,0<,>-2);
- )) e
-
- [small vector increments]
- (()()()(
- (0,8<,>0);
- (1,0<,>8);
- (2,-8<,>0);
- (3,0<,>-8);
- )) c
-
- [vector increments]
- (()()()(
- (0,16<,>0);
- (1,0<,>16);
- (2,-16<,>0);
- (3,0<,>-16);
- )) b
-
- [graph a segment]
- (()()(0 1)(
- (-<0><,>0,(L)(until,0,<0>,(%G,12,al=1,cx=(X),dx=(y)),(#p,<=>),));
- (0<,>-<1>,(D)(until,0,<1>,(%G,12,al=1,cx=(x),dx=(Y)),(#p,<=>),));
- (<0><,>0,(R)(until,0,<0>,(%G,12,al=1,cx=(X),dx=(y)),(#p,<=>),));
- (0<,><1>,(U)(until,0,<1>,(%G,12,al=1,cx=(x),dx=(Y)),(#p,<=>),));
- )) g
-
- [main program]
- (()(
- ((%r,ARR:xy[1])) x
- ((%r,ARR:xy[2])) y
- ((#f,<(>(%r,CTR:X)+320<)>%320)) X
- ((#f,<(>(%r,CTR:Y)+200<)>%200)) Y
- ((%W,CTR:X,(x),-1)(l)) L
- ((%W,CTR:Y,(y),-1)(d)) D
- ((%W,CTR:X,(x),1)(r)) R
- ((%W,CTR:Y,(y),1)(u)) U
- ((%W,ARR:xy[1],(#f,<(>(x)-<0>+320<)>%320))) l
- ((%W,ARR:xy[2],(#f,<(>(y)-<1>+200<)>%200))) d
- ((%W,ARR:xy[1],(#f,<(>(x)+<0><)>%320))) r
- ((%W,ARR:xy[2],(#f,<(>(y)+<1><)>%200))) u
- )()(
- (,(%Or,ARR:xy,2,6)(%Or,CTR:X)(%Or,CTR:Y)<<
- >>(%W,ARR:xy[1],200)(%W,ARR:xy[2],50)<<
- >>(%G,0,al=4)(%G,11,bl=0,bh=1)(a)(REC/RL/)(%G,0,al=3));
- ))
-
- [end]