白い球?

 投稿者:しばっち  投稿日:2013年12月15日(日)18時56分58秒
  CALL GINIT(640,640)
SET LINE WIDTH 4
FOR Y=0 TO 640 STEP 40
   CALL LINE(0,Y,640,Y,7)
NEXT Y
FOR X=0 TO 640 STEP 40
   CALL LINE(X,0,X,640,7)
NEXT X
FOR Y=40 TO 600 STEP 80
   FOR X=40 TO 600 STEP 80
      CALL BOXFULL(X-10,Y-10,X+10,Y+10,0)
   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) 1,1,1
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) 0,1,0
SET COLOR MIX(5) 0,1,1
SET COLOR MIX(6) 1,1,0
SET COLOR MIX(7) 0,0,0
CLEAR
END SUB

EXTERNAL SUB LINE(XS,YS,XE,YE,C)
SET COLOR C
PLOT LINES
PLOT LINES:XS,YS;XE,YE
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
 

戻る