|
CALL GINIT(600,600)
LET S=5
FOR X=0 TO 600 STEP 6*S
CALL BOXFULL(X,0,X+S,600,4)
NEXT X
FOR Y=0 TO 600 STEP 6*S
CALL BOXFULL(0,Y,600,Y+S,4)
NEXT Y
FOR Y=0 TO 600 STEP 6*S
FOR X=0 TO 600 STEP 6*S
CALL CIRCLEFULL(X+S/2,Y+S/2,3,7)
NEXT X
NEXT Y
END
EXTERNAL SUB GINIT(XSIZE,YSIZE)
SET BITMAP SIZE XSIZE,YSIZE
SET WINDOW 0,XSIZE-1,YSIZE-1,0
SET POINT STYLE 1
SET COLOR MODE "REGULAR"
SET COLOR MIX(0) 0,0,0
SET COLOR MIX(1) 0,0,1
SET COLOR MIX(2) 1,0,0
SET COLOR MIX(3) 1,0,1
SET COLOR MIX(4) .5,.5,.5
SET COLOR MIX(5) 0,1,1
SET COLOR MIX(6) 1,1,0
SET COLOR MIX(7) 1,1,1
CLEAR
END SUB
EXTERNAL SUB BOXFULL(X1,Y1,X2,Y2,C)
SET COLOR C
PLOT AREA:X1,Y1;X2,Y1;X2,Y2;X1,Y2;X1,Y1
END SUB
EXTERNAL SUB CIRCLEFULL(X,Y,RR,C)
SET COLOR C
DRAW DISK WITH SCALE(RR)*SHIFT(X,Y)
END SUB
|
|