幻聴で思ったSu事その4
2023.01.24(Tue)
福岡大
3510 *PREDISPLAYPASS
3520 GOTO *ROOTGO
3530 FOR R=1 TO 8:FOR T=1 TO 64:FOR I=1 TO 64:PRINT DM2(I,T,R);:NEXT:NEXT:PRINT:BEEP:BEEP:BEEP:NEXT
3540 FOR R=1 TO 8:FOR T=1 TO 64:FOR I=1 TO 64:PRINT CP(I,T,R);:NEXT:NEXT:PRINT:BEEP:BEEP:BEEP:NEXT:END
3550 *ROOTGO
3560 GOTO *RUNNINGPROGRAM
3570 ::
3580 *DITHERFILTERLING
3590 FOR T=1 TO 64:FOR I=1 TO 64:
3600 IF DARKSOLID(I,T)<>0 THEN CP(I,T,1)=CP
3610 IF DARKSOLID(I,T) =0 THEN CP(I,T,1)=BC
3620 NEXT I:NEXT T
3630 FOR T=1 TO 64:FOR I=1 TO 64:
3640 IF HEVYPALE(I,T)<>0 THEN CP(I,T,2)=CP
3650 IF HEVYPALE(I,T) =0 THEN CP(I,T,2)=BC
3660 NEXT I:NEXT T:
3670 FOR T=1 TO 64:FOR I=1 TO 64:
3680 IF HEVYHARF(I,T)<>0 THEN CP(I,T,3)=CP
3690 IF HEVYHARF(I,T) =0 THEN CP(I,T,3)=BC
3700 NEXT I:NEXT T:
3710 FOR T=1 TO 64:FOR I=1 TO 64:
3720 IF HARF(I,T)<>0 THEN CP(I,T,4)=CP
3730 IF HARF(I,T) =0 THEN CP(I,T,4)=BC
3740 NEXT I:NEXT T
3750 FOR T=1 TO 64:FOR I=1 TO 64:
3760 IF LIGHT(I,T)<>0 THEN CP(I,T,5)=CP
3770 IF LIGHT(I,T) =0 THEN CP(I,T,5)=BC
3780 NEXT I:NEXT T
3790 FOR T=1 TO 64:FOR I=1 TO 64:
3800 IF LIGHTPALE(I,T)<>0 THEN CP(I,T,6)=CP
3810 IF LIGHTPALE(I,T) =0 THEN CP(I,T,6)=BC
3820 NEXT I:NEXT T
3830 FOR T=1 TO 64:FOR I=1 TO 64:
3840 IF LIGHTSOLID(I,T)<>0 THEN CP(I,T,7)=CP
3850 IF LIGHTSOLID(I,T) =0 THEN CP(I,T,7)=BC
3860 NEXT I:NEXT T
3870 FOR T=1 TO 64:FOR I=1 TO 64:
3880 IF CHECKBOX(I,T)<>0 THEN CP(I,T,8)=CP
3890 IF CHECKBOX(I,T) =0 THEN CP(I,T,8)=BC
3900 NEXT I:NEXT T
3910 RETURN
3920 *SEQUENTIAL
3930 YY$=LEFT$(DATE$,2):MM$=RIGHT$(DATE$,5):MM$=LEFT$(MM$,2):DD$=RIGHT$(DATE$,2)
3940 REM ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
3950 OPEN "MYPIC"+YY$+MM$+DD$+".ASC" FOR OUTPUT AS #1
3960 FOR DLAY=0 TO 7:
3970 FOR T=1 TO 64:FOR I=1 TO 64
3980 LAYER$(I,T,DLAY)=HEX$(LAYER(I,T,DLAY)):REM PRINT LAYER$(I,T,Dlay);LAYER(I,T,lay);
3990 NEXT:PRINT:NEXT::
4000 FOR T=1 TO 64:FOR I=1 TO 64:LAYER$=LAYER$+LAYER$(I,T,DLAY):NEXT:DATAFLOOR$(T,DLAY)=LAYER$:LAYER$="":NEXT
4010 REM FOR I=1 TO 64:PRINT DATAFLOOR$(I,DLAY):NEXT
4020 NEXT
4030 FOR DLAY=0 TO 5:T=65:FOR I=1 TO 64:T=T-1:
4040 WRITE #1,DATAFLOOR$(I,DLAY),HEX$(T)+CHR$(44):NEXT:NEXT:CLOSE #1
4050 OPEN "LOGPIC.ASC" FOR OUTPUT AS #2
4060 FOR DLAY=0 TO 5:T=65:FOR I=1 TO 64:T=T-1:
4070 WRITE #2,DATAFLOOR$(I,DLAY),HEX$(T)+CHR$(44):NEXT:NEXT:WRITE #2,YY$+MM$+DD$+" DAYS END OF FILE"," ":CLOSE #2
4080 LOCATE 61,21:PRINT":MYPIC"+YY$+MM$+DD$+".ASC":LOCATE 61,22:PRINT"STATUS"
4090 LOCATE 61,23:PRINT"MATRIX X:64 Y:64":LOCATE 61,24:PRINT"/ LINE"
4100 COLOR@(0,0)-(79,24),0 :::
4110 CLS:GOSUB *REFRESHTXT:GOTO *FIELDCNT
4120 REM ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
4130 *SEQUENTIALLOAD
4140 YY$=LEFT$(DATE$,2):MM$=RIGHT$(DATE$,5):MM$=LEFT$(MM$,2):DD$=RIGHT$(DATE$,2)
4150 OPEN "MYPIC"+YY$+MM$+DD$+".ASC" FOR INPUT AS #3
4160 FOR T=1 TO 64:INPUT #3,DATAFLOOR$(T,0),CR$:NEXT
4170 FOR T=1 TO 64:FOR I=1 TO 64:LAYER(I,T,0)=VAL("&h"+RIGHT$(LEFT$(DATAFLOOR$(T,DLAY),I),1)):NEXT:NEXT
4180 CLOSE #3:
4190 REM FOR T=1 TO 64:FOR I=1 TO 64:PRINT LAYER(I,T,0);:NEXT:PRINT:NEXT:
4200 CLS:GOSUB *REFRESHTXT:GOTO *FIELDCNT
4210 ::
4220 ::
4230 *FDOT LOCATE 0,8:PRINT MSX;MSY,FMX;FMY,CP(I,T,DFL)
4240 J=0:WHILE J<1:MSX=MOUSE(0):MSY=MOUSE(1)
4250 IF MOUSE(2,1)=0 THEN J=1
4260 *DOTHIT
4270 FOR I=1 TO 64:FOR T=1 TO 64:
4280 IF (T*7)+20<MSX AND (T*7)+27>MSX THEN DOTX=T:
4290 NEXT T:IF (I*7)+20<MSY AND (I*7)+27>MSY THEN DOTY=I:
4300 NEXT I:LB=0
4310 FOR I=1 TO 64:FOR T=1 TO 64:
4320 IF (T*7)+20<MSX AND (T*7)+27>MSX THEN DOTXB=T:
4330 NEXT T:IF (I*7)+20<MSY AND (I*7)+27>MSY THEN DOTYB=I:
4340 NEXT I:LB=0
4350 IF DOTX<>DOTXB OR DOTY<>DOTYB THEN *DOTHIT
4360 IF DOTX>0 AND DOTY>0 AND DOTX<65 AND DOTY<65 THEN LINE(DOTX*7+13,DOTY*7+13)-(DOTX*7+20,DOTY*7+20),CP(DOTX,DOTY,DFL),BF:LAYER(DOTX,DOTY,LAY)=CP(DOTX,DOTY,DFL)
4370 WEND:
4380 GOTO *FIELDCNT
4390 END
4400 *FLINE CLK="0
4410" IF SWICH="0" THEN SWICH="1:GOTO" *AREASC
4420 IF DC="1" THEN *AREASC
4430 REM IF DOUBLE="1" THEN DOUBLE="0:GOTO" *AREASC
4440 IF UDX(IVC-1)=0 OR UDY(IVC-1)=0 THEN SWICH="1:GOTO" *AREASC
4450 IF UDX(IVC)=UDX(IVC-1) AND UDY(IVC)=UDY(IVC-1) THEN *AREASC
4460 IF MCX="MOUSE(4,1)" THEN ELSE *FIELDCNT
4470 IF XXL="1" OR UDX(IVC)=UDX(IVC-1) THEN *LINEHANDUD
4480 IF YYL="1" OR UDY(IVC)=UDY(IVC-1) THEN *LINEHANDRL
4490 IF XXL<0 AND YYL>0 THEN *LINEHANDRD
4500 IF XXL>0 AND YYL>0 THEN *LINEHANDLD
4510 IF XXL<0 AND YYL<0 THEN *LINEHANDRU
4520 IF XXL>0 AND YYL<0 THEN *LINEHANDLU
4530 *LINEHANDUD
4540 IF UDY(IVC)>UDY(IVC-1) THEN LHYY=UDY(IVC-1):LHYYL=YYL
4550 IF UDY(IVC)<UDY(IVC-1) THEN LHYY=UDY(IVC) :LHYYL=-YYL
4560 FOR I=LHYY TO LHYY+LHYYL STEP 1:
4570 LAYER(UDX(IVC),I,LAY)=CP(UDX(IVC),I,DFL):LINE(UDX(IVC)*7+13,I*7+13)-(UDX(IVC)*7+20,I*7+20),CP,BF:REM CP(UDX(IVC),I,DFL),BF
4580 NEXT:PRINT "ud";YYL;LHYY,"
4590 GOTO *AREASC
4600 *LINEHANDRL
4610 IF UDX(IVC)>UDX(IVC-1) THEN LHXX=UDX(IVC-1):LHXXL=XXL
4620 IF UDX(IVC)<UDX(IVC-1) THEN LHXX=UDX(IVC):LHXXL=-XXL
4630 FOR T=LHXX TO LHXX+LHXXL STEP 1:
4640 LAYER(T,UDY(IVC),5)=CP(T,UDY(IVC),DFL):LINE(T*7+13,UDY(IVC)*7+13)-(T*7+20,UDY(IVC)*7+20),CP,BF:REM CP(UDX(IVC),I,DFL),BF
4650 NEXT:PRINT "RL";XXL;LHXX,"
4660 GOTO *AREASC
4670 *LINEHANDRD
4680 XYL=XXL/YYL:STP=0:ISTP=0:BKSTP=0:
4690 FOR I=UDY(IVC-1) TO UDY(IVC) STEP 1:BKSTP=ISTP:STP=STP+XYL:ISTP=INT(STP)
4700 FOR T=UDX(IVC-1)+ISTP TO UDX(IVC-1)+BKSTP STEP 1:
4710 IF T>=UDX(IVC) AND T=<UDX(IVC-1) THEN LAYER(T,I,LAY)=CP(T,I,DFL):LINE(T*7+13,I*7+13)-(T*7+20,I*7+20),CP,BF:REM CP(UDX(IVC),I,DFL),BF
4720 NEXT:
4730 NEXT:PRINT "aa";XYL;STP;ISTP;BKSTP;YYL;T;I;" "
4740 GOTO *AREASC
4750 *LINEHANDLD
4760 XYL=XXL/YYL:STP=0:ISTP=0:BKSTP=0:
4770 FOR I=UDY(IVC-1) TO UDY(IVC) STEP 1:BKSTP=ISTP:STP=STP+XYL:ISTP=INT(STP)
4780 FOR T=UDX(IVC-1)+BKSTP TO UDX(IVC-1)+ISTP STEP 1:
4790 IF T>=UDX(IVC-1) AND T=<UDX(IVC) THEN LAYER(T,I,LAY)=CP(T,I,DFL):LINE(T*7+13,I*7+13)-(T*7+20,I*7+20),CP,BF:REM CP(UDX(IVC),I,DFL),BF
4800 NEXT:
4810 NEXT:PRINT "bb";XYL;STP;ISTP;BKSTP;T;I;"
4820 GOTO *AREASC
4830 *LINEHANDRU
4840 XYL=-XXL/-YYL:STP=0:ISTP=0:BKSTP=0:LOCATE 0,10:PRINT XYL;XXL;YYL," "
4850 FOR I=UDY(IVC) TO UDY(IVC-1) STEP 1:BKSTP=ISTP:STP=STP+XYL:ISTP=INT(STP)
4860 FOR T=UDX(IVC)+BKSTP TO UDX(IVC)+ISTP STEP 1:
4870 IF T>=UDX(IVC) AND T=<UDX(IVC-1) THEN LAYER(T,I,LAY)=CP(T,I,DFL):LINE(T*7+13,I*7+13)-(T*7+20,I*7+20),CP,BF:REM CP(UDX(IVC),I,DFL),BF
4880 NEXT:
4890 NEXT:PRINT "bb";XYL;STP;ISTP;BKSTP;T;I;"
4900 GOTO *AREASC
4910 *LINEHANDLU
4920 XYL=XXL/-YYL:STP=0:ISTP=0:BKSTP=0:
4930 FOR I=UDY(IVC) TO UDY(IVC-1) STEP 1:BKSTP=ISTP:STP=STP-XYL:ISTP=INT(STP):
4940 FOR T=UDX(IVC)+ISTP TO UDX(IVC)+BKSTP STEP 1:
4950 IF T>=UDX(IVC-1) AND T=<UDX(IVC) THEN LAYER(T,I,LAY)=CP(T,I,DFL):LINE(T*7+13,I*7+13)-(T*7+20,I*7+20),CP,BF:REM CP(UDX(IVC),I,DFL),BF
4960 NEXT:
4970 NEXT:PRINT "bb";XYL;STP;ISTP;BKSTP;T;I;"
4980 GOTO *AREASC
4990 *LINEUNDO
5000 REM FOR I=1 TO 64:FOR T=1 TO 64:
5010 END
5020 END
5030 END
5040 END
5050 END
5060 END
5070 END
5080 *TOOLS
5090 IF IVX(IVC)<488 THEN *FIELDCNT
5100 IF IVY(IVC)>39 AND IVY(IVC)<57 THEN *COLORPALLETE
5110 IF IVY(IVC)>58 AND IVY(IVC)<114 THEN *COLORCHANGE
5120 IF IVY(IVC)>115 AND IVY(IVC)<171 THEN *COLORLEVEL
5130 IF IVY(IVC)>172 AND IVY(IVC)<190 THEN *DITHER
5140 IF IVY(IVC)>191 AND IVY(IVC)<209 THEN *LINECARV
5150 IF IVY(IVC)>210 AND IVY(IVC)<228 THEN *PAINTPSET
5160 IF IVY(IVC)>229 AND IVY(IVC)<247 THEN *LAYERCHANGE
5170 IF IVY(IVC)>248 AND IVY(IVC)<285 THEN *PENCHANGE
5180 IF IVY(IVC)>286 AND IVY(IVC)<304 THEN *SPOITGLID
5190 IF IVY(IVC)>305 AND IVY(IVC)<323 THEN *UNDORESET
5200 IF IVY(IVC)>362 AND IVY(IVC)<380 THEN IF IVX(IVC)<MLC(77) AND IVX(IVC)>MLC(71) THEN *SEQUENTIALLOAD ELSE IF IVX(IVC)<MLC(71) THEN *SEQUENTIAL
5210 IF IVY(IVC)>362 AND IVY(IVC)<380 THEN IF IVX(IVC)<MLC(77) AND IVX(IVC)>MLC(71) THEN *SEQUENTIALLOAD ELSE IF IVX(IVC)<MLC(71) THEN *SEQUENTIAL
5220 IF IVY(IVC)>381 AND IVY(IVC)<399 THEN *FILENAME
5230 IVC=IVC-1
5240 GOTO *FIELDCNT
5250 END
5260 *COLORPALLETE
5270 FLAGCP=0
5280 FOR C=0 TO 15
5290 IF IVX(IVC)>MLCP(C+61) AND IVX(IVC)<MLCP(C+62) THEN FLAGCP=1:CP=C
5300 NEXT
5310 GOSUB *DITHERFILTERLING
5320 IF FLAGCP=1 THEN IF MOSE(2,2)<>0 THEN P=CP:BC=CP:FLAGCP=0
5330 IF BCP=CP THEN *FIELDCNT
5340 I=0:FOR C=61 TO 76:LINE (MLCP(C),MLFP(2))-(MLCP(C)+8,MLFP(3)),I,BF:I=I+1:NEXT C
5350 I=0:FOR C=61 TO 76
5360 IF CP=I THEN LINE (MLCP(C),37)-(MLCP(C+1),56),7,B
5370 I=I+1:NEXT:GOSUB *DITHERFILTERLING:GOTO *AREASC
5380 GOTO *FIELDCNT
5390 END
5400 *LINECARV
5410 IF IVX(IVC)>488 AND IVX(IVC)<520 THEN FLAGS$="LINE"
5420 IF IVX(IVC)>552 AND IVX(IVC)<584 THEN FLAGS$="CARV"
5430 IF IVC>1 THEN IVC=IVC-1 ELSE IF IVC=1 THEN IVC=99
5440 COLOR 0:LOCATE 61,23:PRINT"/ ";FLAGS$;" ":LOCATE 73,23:PRINT" "
5450 GOTO *FIELDCNT
5460 END
5470 *PAINTPSET
5480 IF IVX(IVC)>488 AND IVX(IVC)<528 THEN FLAGS$="PAINT"
5490 IF IVX(IVC)>552 AND IVX(IVC)<576 THEN FLAGS$="DOT"
5500 IF IVC>1 THEN IVC=IVC-1 ELSE IF IVC=1 THEN IVC=99
5510 COLOR 0:LOCATE 61,23:PRINT"/ ";FLAGS$;" ":LOCATE 73,23:PRINT" "
5520 GOTO *FIELDCNT
5530 END
5540 *PENCHANGE
5550 IF IVX(IVC)>520 AND IVX(IVC)<528 THEN FLAGS$="PEN":PENTYPE$="circle"
5560 IF IVX(IVC)>552 AND IVX(IVC)<560 THEN FLAGS$="PEN":PENTYPE$="box "
5570 IF IVX(IVC)>576 AND IVX(IVC)<584 THEN FLAGS$="PEN":PENS=3
5580 IF IVX(IVC)>592 AND IVX(IVC)<600 THEN FLAGS$="PEN":PENS=5
5590 IF IVC>1 THEN IVC=IVC-1 ELSE IF IVC=1 THEN IVC=99
5600 COLOR 0:LOCATE 61,23:PRINT"/ ";FLAGS$;PENS;PENTYPE$;
5610 GOTO *FIELDCNT
5620 END
5630 END
5640 END
5650 END
5660 END
5670 *FPEN
5680 IF MSX>468 THEN *TOOLS
5690 IF MSX<20 OR MSX<20 OR MSX>468 OR MSX>468 THEN *COUNTERA
5700 J=0:NULL=MOUSE(2,1):IF NULL=0 THEN *AREASC
5710 IF PENTYPE$="circle" AND PENS=5 THEN *CPENFIVE
5720 IF PENTYPE$="circle" AND PENS=3 THEN *CPENTHREE
5730 IF PENTYPE$="box " AND PENS=5 THEN *BPENL
5740 IF PENTYPE$="box " AND PENS=3 THEN *BPENS
5750 IF PENTYPE$="" OR PENS=0 THEN PENS=5:PENTYPE$="circle":GOTO *FPEN
5760 GOTO *AREASC
5770 END
5780 *CPENFIVE LOCATE 0,8:PRINT MSX;MSY,FMX;FMY
5790 GOSUB *DITHERFILTERLING:FOR T=1 TO 64:LOCATE 0,20:PRINT CP(T,1,LAY);CP(T,2,LAY);CP(T,3,LAY);CP(T,4,LAY);CP(T,5,LAY);CP(T,6,LAY);
5800 PRINT CP(T,7,LAY);CP(T,8,LAY);CP(T,9,LAY);CP(T,10,LAY);CP(T,11,LAY);CP(T,12,LAY);CP(T,13,LAY);
5810 PRINT CP(T,14,LAY);CP(T,15,LAY);CP(T,16,LAY);CP(T,17,LAY);CP(T,18,LAY);CP(T,19,LAY);CP(T,20,LAY);
5820 PRINT CP(T,21,LAY);CP(T,22,LAY);CP(T,23,LAY);CP(T,24,LAY);CP(T,25,LAY);CP(T,26,LAY);CP(T,27,LAY);
5830 PRINT CP(T,28,LAY);CP(T,29,LAY);CP(T,30,LAY);CP(T,31,LAY);CP(T,32,LAY);CP(T,33,LAY);CP(T,34,LAY);
5840 PRINT CP(T,35,LAY);CP(T,36,LAY);CP(T,37,LAY);CP(T,38,LAY);CP(T,39,LAY);CP(T,40,LAY);CP(T,41,LAY);
5850 PRINT CP(T,42,LAY);CP(T,42,LAY);CP(T,43,LAY);CP(T,44,LAY);CP(T,45,LAY);CP(T,46,LAY);CP(T,47,LAY);
5860 PRINT CP(T,48,LAY);CP(T,49,LAY);CP(T,50,LAY);CP(T,51,LAY);CP(T,52,LAY);CP(T,53,LAY);CP(T,54,LAY);
5870 PRINT CP(T,55,LAY);CP(T,56,LAY);CP(T,57,LAY);CP(T,58,LAY);CP(T,59,LAY);CP(T,60,LAY);CP(T,61,LAY);CP(T,62,LAY);CP(T,63,LAY);CP(T,64,LAY);
5880 NEXT
5890 J=0:WHILE J<1:MSX=MOUSE(0):MSY=MOUSE(1):DFL=1
5900 IF MOUSE(2,1)=0 THEN J=1
5910 FOR I=1 TO 64:FOR T=1 TO 64:
5920 IF T*7+13<MSX AND T*7+20>MSX THEN PENX=T:
5930 NEXT T:IF I*7+13<MSY AND I*7+20>MSY THEN PENY=I:
5940 NEXT I:LB=0
5950 IF PENX>0 AND PENY>0 AND PENX<65 AND PENY<65 THEN LINE(PENX*7+13,PENY*7+13)-(PENX*7+20,PENY*7+20),CP,BF:REM CP(PENX,PENY,DFL),BF:LAYER(PENX,PENY,LAY)=CP(PENX,PENY,DFL)
5960 IF PENX>1 AND PENY>2 THEN LINE(PENX*7-7+13,PENY*7-14+13)-(PENX*7-7+20,PENY*7-14+20),CP,BF:REM CP(PENX-1,PENY-2,DFL),BF:LAYER(PENX-1,PENY-2,LAY)=CP(PENX-1,PENY-2,DFL)
5970 IF PENX>2 AND PENY>1 THEN LINE(PENX*7-14+13,PENY*7-7+13)-(PENX*7-14+20,PENY*7-7+20),CP,BF:REM CP(PENX-2,PENY-1,DFL),BF:LAYER(PENX-2,PENY-1,LAY)=CP(PENX-2,PENY-1,DFL)
5980 IF PENX>2 AND PENY>0 THEN LINE(PENX*7-14+13,PENY*7+0+13)-(PENX*7-14+20,PENY*7+0+20),CP,BF:REM CP(PENX-2,PENY ,DFL),BF:LAYER(PENX-2,PENY ,LAY)=CP(PENX-2,PENX ,DFL)
5990 IF PENX>2 AND PENY<64 THEN LINE(PENX*7-14+13,PENY*7+7+13)-(PENX*7-14+20,PENY*7+7+20),CP,BF:REM CP(PENX-2,PENY+1,DFL),BF:LAYER(PENX-2,PENY+1,LAY)=CP(PENX-2,PENY+1,DFL)
6000 IF PENX>1 AND PENY<63 THEN LINE(PENX*7-7+13,PENY*7+14+13)-(PENX*7-7+20,PENY*7+14+20),CP,BF:REM CP(PENX-1,PENY+2,DFL),BF:LAYER(PENX-1,PENY+2,LAY)=CP(PENX-1,PENY+2,DFL)
6010 IF PENX>1 AND PENY>1 THEN LINE(PENX*7-7+13,PENY*7-7+13)-(PENX*7-7+20,PENY*7-7+20),CP,BF:REM CP(PENX-1,PENY-1,DFL),BF:LAYER(PENX-1,PENY-1,LAY)=CP(PENX-1,PENY-1,DFL)
6020 IF PENX>1 AND PENY>0 THEN LINE(PENX*7-7+13,PENY*7+0+13)-(PENX*7-7+20,PENY*7+0+20),CP,BF:REM CP(PENX-1,PENY ,DFL),BF:LAYER(PENX-1,PENY ,LAY)=CP(PENX-1,PENX ,DFL)
6030 IF PENX>1 AND PENY<64 THEN LINE(PENX*7-7+13,PENY*7+7+13)-(PENX*7-7+20,PENY*7+7+20),CP,BF:REM CP(PENX-1,PENY+1,DFL),BF:LAYER(PENX-1,PENY+1,LAY)=CP(PENX-1,PENY+1,DFL)
6040 IF PENX>0 AND PENY>2 THEN LINE(PENX*7-0+13,PENY*7-14+13)-(PENX*7-0+20,PENY*7-14+20),CP,BF:REM CP(PENX ,PENY-2,DFL),BF:LAYER(PENX ,PENY-2,LAY)=CP(PENX ,PENY-2,DFL)
6050 IF PENX>0 AND PENY>1 THEN LINE(PENX*7-0+13,PENY*7-7+13)-(PENX*7-0+20,PENY*7-7+20),CP,BF:REM CP(PENX ,PENY-1,DFL),BF:LAYER(PENX ,PENY-1,LAY)=CP(PENX ,PENY-1,DFL)
6060 IF PENX>0 AND PENY<64 THEN LINE(PENX*7-0+13,PENY*7+7+13)-(PENX*7-0+20,PENY*7+7+20),CP,BF:REM CP(PENX ,PENY+1,DFL),BF:LAYER(PENX ,PENY+1,LAY)=CP(PENX ,PENY+1,DFL)
6070 IF PENX>0 AND PENY<63 THEN LINE(PENX*7-0+13,PENY*7+14+13)-(PENX*7-0+20,PENY*7+14+20),CP,BF:REM CP(PENX ,PENY+2,DFL),BF:LAYER(PENX ,PENY+2,LAY)=CP(PENX ,PENY+2,DFL)
6080 IF PENX<64 AND PENY>2 THEN LINE(PENX*7+7+13,PENY*7-14+13)-(PENX*7+7+20,PENY*7-14+20),CP,BF:REM CP(PENX+1,PENY-2,DFL),BF:LAYER(PENX+1,PENY-2,LAY)=CP(PENX+1,PENY-2,DFL)
6090 IF PENX<63 AND PENY>1 THEN LINE(PENX*7+14+13,PENY*7-7+13)-(PENX*7+14+20,PENY*7-7+20),CP,BF:REM CP(PENX+2,PENY-1,DFL),BF:LAYER(PENX+2,PENY-1,LAY)=CP(PENX+2,PENY-1,DFL)
6100 IF PENX<63 AND PENY>0 THEN LINE(PENX*7+14+13,PENY*7+0+13)-(PENX*7+14+20,PENY*7+0+20),CP,BF:REM CP(PENX+2,PENY ,DFL),BF:LAYER(PENX+2,PENY ,LAY)=CP(PENX+2,PENY ,DFL)
6110 IF PENX<63 AND PENY<64 THEN LINE(PENX*7+14+13,PENY*7+7+13)-(PENX*7+14+20,PENY*7+7+20),CP,BF:REM CP(PENX+2,PENY+1,DFL),BF:LAYER(PENX+2,PENY+1,LAY)=CP(PENX+2,PENY+1,DFL)
6120 IF PENX<64 AND PENY<63 THEN LINE(PENX*7+7+13,PENY*7+14+13)-(PENX*7+7+20,PENY*7+14+20),CP,BF:REM CP(PENX+1,PENY+2,DFL),BF:LAYER(PENX+1,PENY+2,LAY)=CP(PENX+1,PENY+2,DFL)
6130 IF PENX<64 AND PENY>1 THEN LINE(PENX*7+7+13,PENY*7-7+13)-(PENX*7+7+20,PENY*7-7+20),CP,BF:REM CP(PENX+1,PENY-1,DFL),BF:LAYER(PENX+1,PENY-1,LAY)=CP(PENX+1,PENY-1,DFL)
6140 IF PENX<64 AND PENY>0 THEN LINE(PENX*7+7+13,PENY*7+0+13)-(PENX*7+7+20,PENY*7+0+20),CP,BF:REM CP(PENX+1,PENY ,DFL),BF:LAYER(PENX+1,PENY ,LAY)=CP(PENX+1,PENY ,DFL)
6150 IF PENX<64 AND PENY<64 THEN LINE(PENX*7+7+13,PENY*7+7+13)-(PENX*7+7+20,PENY*7+7+20),CP,BF:REM CP(PENX+1,PENY+1,DFL),BF:LAYER(PENX+1,PENY+1,LAY)=CP(PENX+1,PENY+1,DFL)
6160 REM LOCATE 0,22:PRINT LAY;" ";CP(PENX,PENY,LAY);CP(PENX-1,PENY-2,LAY);CP(PENX-2,PENY+1,LAY);CP(PENX-2,PENY ,LAY);CP(PENX-2,PENY+1,LAY);CP(PENX-2,PENY+1,LAY);CP(PENX-1,PENY-1,LAY);
6170 REM LOCATE 0,23:PRINT CP(PENX-1,PENY ,LAY);CP(PENX-1,PENY+1,LAY);CP(PENX ,PENY-2,LAY);CP(PENX ,PENY-1,LAY);CP(PENX ,PENY+1,LAY);CP(PENX ,PENY+2,LAY);CP(PENX+1,PENY-2,LAY);
6180 REM LOCATE 0,24:PRINT CP(PENX+2,PENY-1,LAY);CP(PENX+2,PENY ,LAY);CP(PENX+2,PENY+1,LAY);CP(PENX+1,PENY+2,LAY);CP(PENX+1,PENY ,LAY);CP(PENX+1,PENY+1,LAY);
6190 WEND
6200 GOTO *AREASC
6210 END
6220 *CPENTHREE
6230 LOCATE 0,8:PRINT MSX;MSY,FMX;FMY,CP(I,T,LAY)
6240 J="0:WHILE" J<1:MSX=MOUSE(0):MSY=MOUSE(1)
6250 IF MOUSE(2,1)=0 THEN J="1
6260" FOR I="1" TO 64:FOR T="1" TO 64:
6270 IF T*7+20<MSX AND T*7+27>MSX THEN PENX=T:
6280 NEXT T:IF I*7+20<MSY AND I*7+27>MSY THEN PENY=I:
6290 NEXT I:LB=0
6300 IF PENX>0 AND PENY>0 AND PENX<65 AND PENY<65 THEN LINE(PENX*7+13,PENY*7+13)-(PENX*7+27,PENY*7+27),CP,BF:REM CP(PENX,PENY,DFL),BF:LAYER(PENX,PENY,LAY)=CP(PENX,PENY,DFL)
6310 IF PENX>1 AND PENY>0 THEN LINE(PENX*7-7+13,PENY*7+0+13)-(PENX*7-7+20,PENY*7+0+20),CP,BF:REM CP(PENX-1,PENY ,DFL ),BF :LAYER(PENX-1,PENY ,LAY)=CP(PENX-1,PENY,DFL)
6320 IF PENX<64 AND PENY>0 THEN LINE(PENX*7+7+13,PENY*7+0+13)-(PENX*7+7+20,PENY*7+0+20),CP,BF:REM CP(PENX+1,PENY ,DFL ),BF :LAYER(PENX+1,PENY ,LAY)=CP(PENX+1,PENY,DFL)
6330 IF PENX>0 AND PENY<64 THEN LINE(PENX*7-0+13,PENY*7+7+13)-(PENX*7-0+20,PENY*7+7+20),CP,BF:REM CP(PENX ,PENY+1,DFL ),BF :LAYER(PENX ,PENY+1,LAY)=CP(PENX,PENY+1,DFL)
6340 IF PENX>0 AND PENY>1 THEN LINE(PENX*7-0+13,PENY*7-7+13)-(PENX*7-0+20,PENY*7-7+20),CP,BF:REM CP(PENX ,PENY-1,DFL ),BF :LAYER(PENX ,PENY-1,LAY)=CP(PENX,PENY-1,DFL)
6350 WEND
6360 GOTO *AREASC
6370 END
6380 *BPENL LOCATE 0,8:PRINT MSX;MSY,FMX;FMY,CP(I,T,DFL)
6390 J=0:J=0:WHILE J<1:MSX=MOUSE(0):MSY=MOUSE(1)
6400 IF MOUSE(2,1)=0 THEN J=1
6410 FOR I=1 TO 64:FOR T=1 TO 64:
6420 IF T*7+20<MSX AND T*7+27>MSX THEN PENX=T:
6430 NEXT T:IF I*7+20<MSY AND I*7+27>MSY THEN PENY=I:
6440 NEXT I:LB=0
6450 IF PENX>0 AND PENY>0 AND PENX<65 AND PENY<65 THEN LINE(PENX*7+13,PENY*7+13)-(PENX*7+20,PENY*7+20),CP,BF:REM CP(PENX,PENY,DFL),BF:LAYER(PENX,PENY,LAY)=CP(PENX,PENY,DFL)
6460 IF PENX>1 AND PENY>2 THEN LINE(PENX*7-7 +13,PENY*7-14+13)-(PENX*7 -7+20,PENY*7-14+20),CP,BF:REM CP(PENX+1,PENY-2,DFL),BF:LAYER(PENX+1,PENY-2,LAY)=CP(PENX+1,PENY-2,DFL)
6470 IF PENX>2 AND PENY>1 THEN LINE(PENX*7-14+13,PENY*7-7+13)-(PENX*7-14+20,PENY*7-7+20),CP,BF:REM CP(PENX-2,PENY-1,DFL),BF:LAYER(PENX-2,PENY-1,LAY)=CP(PENX-2,PENY-1,DFL)
6480 IF PENX>2 AND PENY>0 THEN LINE(PENX*7-14+13,PENY*7+0+13)-(PENX*7-14+20,PENY*7+0+20),CP,BF:REM CP(PENX-2,PENY ,DFL),BF:LAYER(PENX-2,PENY ,LAY)=CP(PENX-2,PENY ,DFL)
6490 IF PENX>2 AND PENY<64 THEN LINE(PENX*7-14+13,PENY*7+7+13)-(PENX*7-14+20,PENY*7+7+20),CP,BF:REM CP(PENX-2,PENY+1,DFL),BF:LAYER(PENX-2,PENY+1,LAY)=CP(PENX-2,PENY+1,DFL)
6500 IF PENX>1 AND PENY<63 THEN LINE(PENX*7-7+13,PENY*7+14+13)-(PENX*7-7+20,PENY*7+14+20),CP,BF:REM CP(PENX-1,PENY+2,DFL),BF:LAYER(PENX-1,PENY+2,LAY)=CP(PENX-1,PENY+2,DFL)
6510 IF PENX>1 AND PENY>1 THEN LINE(PENX*7-7+13,PENY*7-7+13)-(PENX*7-7+20,PENY*7-7+20),CP,BF:REM CP(PENX-1,PENY-1,DFL),BF:LAYER(PENX-1,PENY-1,LAY)=CP(PENX-1,PENY-1,DFL)
6520 IF PENX>1 AND PENY>0 THEN LINE(PENX*7-7+13,PENY*7+0+13)-(PENX*7-7+20,PENY*7+0+20),CP,BF:REM CP(PENX-1,PENY ,DFL),BF:LAYER(PENX-1,PENY ,LAY)=CP(PENX-1,PENY ,DFL)
6530 IF PENX>1 AND PENY<64 THEN LINE(PENX*7-7+13,PENY*7+7+13)-(PENX*7-7+20,PENY*7+7+20),CP,BF:REM CP(PENX ,PENY+1,DFL),BF:LAYER(PENX ,PENY+1,LAY)=CP(PENX ,PENY-2,DFL)
6540 IF PENX>0 AND PENY>2 THEN LINE(PENX*7-0+13,PENY*7-14+13)-(PENX*7-0+20,PENY*7-14+20),CP,BF:REM CP(PENX ,PENY-2,DFL),BF:LAYER(PENX ,PENY-2,LAY)=CP(PENX ,PENY-1,DFL)
6550 IF PENX>0 AND PENY>1 THEN LINE(PENX*7-0+13,PENY*7-7+13)-(PENX*7-0+20,PENY*7-7+20),CP,BF:REM CP(PENX ,PENY-1,DFL),BF:LAYER(PENX ,PENY-1,LAY)=CP(PENX ,PENY-1,DFL)
6560 IF PENX>0 AND PENY<64 THEN LINE(PENX*7-0+13,PENY*7+7+13)-(PENX*7-0+20,PENY*7+7+20),CP,BF:REM CP(PENX ,PENY+1,DFL),BF:LAYER(PENX ,PENY+1,LAY)=CP(PENX ,PENY+1,DFL)
6570 IF PENX>0 AND PENY<63 THEN LINE(PENX*7-0+13,PENY*7+14+13)-(PENX*7-0+20,PENY*7+14+20),CP,BF:REM CP(PENX ,PENY+2,DFL),BF:LAYER(PENX ,PENY+2,LAY)=CP(PENX ,PENY+2,DFL)
6580 IF PENX<64 AND PENY>2 THEN LINE(PENX*7+7+13,PENY*7-14+13)-(PENX*7+7+20,PENY*7-14+20),CP,BF:REM CP(PENX+1,PENY-2,DFL),BF:LAYER(PENX+1,PENY-2,LAY)=CP(PENX+1,PENY-2,DFL)
6590 IF PENX<63 AND PENY>1 THEN LINE(PENX*7+14+13,PENY*7-7+13)-(PENX*7+14+20,PENY*7-7+20),CP,BF:REM CP(PENX+2,PENY-1,DFL),BF:LAYER(PENX+2,PENY-1,LAY)=CP(PENX+2,PENY-1,DFL)
6600 IF PENX<63 AND PENY>0 THEN LINE(PENX*7+14+13,PENY*7+0+13)-(PENX*7+14+20,PENY*7+0+20),CP,BF:REM CP(PENX+2,PENY ,DFL),BF:LAYER(PENX+2,PENY ,LAY)=CP(PENX+2,PENY ,DFL)
6610 IF PENX<63 AND PENY<64 THEN LINE(PENX*7+14+13,PENY*7+7+13)-(PENX*7+14+20,PENY*7+7+20),CP,BF:REM CP(PENX+2,PENY+1,DFL),BF:LAYER(PENX+2,PENY+1,LAY)=CP(PENX+2,PENY+1,DFL)
6620 IF PENX<64 AND PENY<63 THEN LINE(PENX*7+7+13,PENY*7+14+13)-(PENX*7+7+20,PENY*7+14+20),CP,BF:REM CP(PENX+1,PENY+2,DFL),BF:LAYER(PENX+1,PENY+2,LAY)=CP(PENX+1,PENY+2,DFL)
6630 IF PENX<64 AND PENY>1 THEN LINE(PENX*7+7+13,PENY*7-7+13)-(PENX*7+7+20,PENY*7-7+20),CP,BF:REM CP(PENX+1,PENY-1,DFL),BF:LAYER(PENX+1,PENY-1,LAY)=CP(PENX+1,PENY-1,DFL)
6640 IF PENX<64 AND PENY>0 THEN LINE(PENX*7+7+13,PENY*7+0+13)-(PENX*7+7+20,PENY*7+0+20),CP,BF:REM CP(PENX+1,PENY ,DFL),BF:LAYER(PENX+1,PENY ,LAY)=CP(PENX+1,PENY ,DFL)
6650 IF PENX<64 AND PENY<64 THEN LINE(PENX*7+7+13,PENY*7+7+13)-(PENX*7+7+20,PENY*7+7+20),CP,BF:REM CP(PENX+1,PENY+1,DFL),BF:LAYER(PENX+1,PENY+1,LAY)=CP(PENX+1,PENY+1,DFL)
6660 IF PENX>2 AND PENY<63 THEN LINE(PENX*7-14+13,PENY*7+14+13)-(PENX*7-14+20,PENY*7+14+20),CP,BF:REM CP(PENX-2,PENY+2,DFL),BF:LAYER(PENX-2,PENY+2,LAY)=CP(PENX-2,PENY+2,DFL)
6670 IF PENX<63 AND PENY<63 THEN LINE(PENX*7+14+13,PENY*7+14+13)-(PENX*7+14+20,PENY*7+14+20),CP,BF:REM CP(PENX+2,PENY+2,DFL),BF:LAYER(PENX+2,PENY+2,LAY)=CP(PENX+2,PENY+2,DFL)
6680 IF PENX<63 AND PENY>2 THEN LINE(PENX*7+14+13,PENY*7-14+13)-(PENX*7+14+20,PENY*7-14+20),CP,BF:REM CP(PENX+2,PENY-2,DFL),BF:LAYER(PENX+2,PENY-2,LAY)=CP(PENX+2,PENY-2,DFL)
6690 IF PENX>2 AND PENY>2 THEN LINE(PENX*7-14+13,PENY*7-14+13)-(PENX*7-14+20,PENY*7-14+20),CP,BF:REM CP(PENX-2,PENY-2,DFL),BF:LAYER(PENX-2,PENY-2,LAY)=CP(PENX-2,PENY-2,DFL)
6700 WEND
6710 GOTO *AREASC
6720 END
6730 *BPENS
6740 LOCATE 0,8:PRINT MSX;MSY,FMX;FMY,CP(I,T,FL)
6750 J=0:WHILE J<1:MSX=MOUSE(0):MSY=MOUSE(1)
6760 IF MOUSE(2,1)=0 THEN J=1
6770 FOR I=1 TO 64:FOR T=1 TO 64:
6780 IF T*7+13<MSX AND T*7+20>MSX THEN PENX=T:
6790 NEXT T:IF I*7+13<MSY AND I*7+20>MSY THEN PENY=I:
6800 NEXT I:LB=0
6810 IF PENX>0 AND PENY>0 AND PENX<65 AND PENY<65 THEN LINE(PENX*7+13,PENY*7+13)-(PENX*7+20,PENY*7+20),CP,BF:REM CP(PENX,PENY,DFL),BF:LAYER(PENX,PENY,DFL)=CP(PENX,PENY,DFL)
6820 IF PENX>1 AND PENY>0 THEN LINE(PENX*7+7+13,PENY*7+0+13)-(PENX*7+7+20,PENY*7+0+20),CP,BF:REM CP(PENX+1,PENY ,DFL),BF :LAYER(PENX+1,PENY ,LAY)=CP(PENX-1,PENY ,DFL )
6830 IF PENX<64 AND PENY>0 THEN LINE(PENX*7-7+13,PENY*7+0+13)-(PENX*7-7+20,PENY*7+0+20),CP,BF:REM CP(PENX-1,PENY ,DFL),BF :LAYER(PENX-1,PENY ,LAY)=CP(PENX-1,PENY ,DFL )
6840 IF PENX>0 AND PENY<64 THEN LINE(PENX*7-0+13,PENY*7-7+13)-(PENX*7-0+20,PENY*7-7+20),CP,BF:REM CP(PENX ,PENY-1,DFL),BF :LAYER(PENX ,PENY-1,LAY)=CP(PENX ,PENY-1,DFL )
6850 IF PENX>0 AND PENY>1 THEN LINE(PENX*7-0+13,PENY*7+7+13)-(PENX*7-0+20,PENY*7+7+20),CP,BF:REM CP(PENX ,PENY+1,DFL),BF :LAYER(PENX ,PENY+1,LAY)=CP(PENX ,PENY+1,DFL )
6860 IF PENX>1 AND PENY>1 THEN LINE(PENX*7-7+13,PENY*7-7+13)-(PENX*7-7+20,PENY*7-7+20),CP,BF:REM CP(PENX-1,PENY-1,DFL),BF :LAYER(PENX-1,PENY-1,LAY)=CP(PENX-1,PENY-1,DFL )
6870 IF PENX<64 AND PENY>1 THEN LINE(PENX*7+7+13,PENY*7-7+13)-(PENX*7+7+20,PENY*7-7+20),CP,BF:REM CP(PENX+1,PENY-1,DFL),BF :LAYER(PENX-1,PENY+1,LAY)=CP(PENX-1,PENY+1,DFL )
6880 IF PENX>1 AND PENY<64 THEN LINE(PENX*7-7+13,PENY*7+7+13)-(PENX*7-7+20,PENY*7+7+20),CP,BF:REM CP(PENX-1,PENY+1,DFL),BF :LAYER(PENX-1,PENY+1,LAY)=CP(PENX-1,PENY+1,DFL )
6890 IF PENX<64 AND PENY<64 THEN LINE(PENX*7+7+13,PENY*7+7+13)-(PENX*7+7+20,PENY*7+7+20),CP,BF:REM CP(PENX+1,PRNY+1,DFL),BF :LAYER(PENX+1,PENY+1,LAY)=CP(PENX+1,PENY+1,DFL )
6900 WEND
6910 GOTO *AREASC
6920 *COLORCHANGE
6930 END IF:GOTO *AREASC
2023.01.24(Tue)
福岡大
3510 *PREDISPLAYPASS
3520 GOTO *ROOTGO
3530 FOR R=1 TO 8:FOR T=1 TO 64:FOR I=1 TO 64:PRINT DM2(I,T,R);:NEXT:NEXT:PRINT:BEEP:BEEP:BEEP:NEXT
3540 FOR R=1 TO 8:FOR T=1 TO 64:FOR I=1 TO 64:PRINT CP(I,T,R);:NEXT:NEXT:PRINT:BEEP:BEEP:BEEP:NEXT:END
3550 *ROOTGO
3560 GOTO *RUNNINGPROGRAM
3570 ::
3580 *DITHERFILTERLING
3590 FOR T=1 TO 64:FOR I=1 TO 64:
3600 IF DARKSOLID(I,T)<>0 THEN CP(I,T,1)=CP
3610 IF DARKSOLID(I,T) =0 THEN CP(I,T,1)=BC
3620 NEXT I:NEXT T
3630 FOR T=1 TO 64:FOR I=1 TO 64:
3640 IF HEVYPALE(I,T)<>0 THEN CP(I,T,2)=CP
3650 IF HEVYPALE(I,T) =0 THEN CP(I,T,2)=BC
3660 NEXT I:NEXT T:
3670 FOR T=1 TO 64:FOR I=1 TO 64:
3680 IF HEVYHARF(I,T)<>0 THEN CP(I,T,3)=CP
3690 IF HEVYHARF(I,T) =0 THEN CP(I,T,3)=BC
3700 NEXT I:NEXT T:
3710 FOR T=1 TO 64:FOR I=1 TO 64:
3720 IF HARF(I,T)<>0 THEN CP(I,T,4)=CP
3730 IF HARF(I,T) =0 THEN CP(I,T,4)=BC
3740 NEXT I:NEXT T
3750 FOR T=1 TO 64:FOR I=1 TO 64:
3760 IF LIGHT(I,T)<>0 THEN CP(I,T,5)=CP
3770 IF LIGHT(I,T) =0 THEN CP(I,T,5)=BC
3780 NEXT I:NEXT T
3790 FOR T=1 TO 64:FOR I=1 TO 64:
3800 IF LIGHTPALE(I,T)<>0 THEN CP(I,T,6)=CP
3810 IF LIGHTPALE(I,T) =0 THEN CP(I,T,6)=BC
3820 NEXT I:NEXT T
3830 FOR T=1 TO 64:FOR I=1 TO 64:
3840 IF LIGHTSOLID(I,T)<>0 THEN CP(I,T,7)=CP
3850 IF LIGHTSOLID(I,T) =0 THEN CP(I,T,7)=BC
3860 NEXT I:NEXT T
3870 FOR T=1 TO 64:FOR I=1 TO 64:
3880 IF CHECKBOX(I,T)<>0 THEN CP(I,T,8)=CP
3890 IF CHECKBOX(I,T) =0 THEN CP(I,T,8)=BC
3900 NEXT I:NEXT T
3910 RETURN
3920 *SEQUENTIAL
3930 YY$=LEFT$(DATE$,2):MM$=RIGHT$(DATE$,5):MM$=LEFT$(MM$,2):DD$=RIGHT$(DATE$,2)
3940 REM ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
3950 OPEN "MYPIC"+YY$+MM$+DD$+".ASC" FOR OUTPUT AS #1
3960 FOR DLAY=0 TO 7:
3970 FOR T=1 TO 64:FOR I=1 TO 64
3980 LAYER$(I,T,DLAY)=HEX$(LAYER(I,T,DLAY)):REM PRINT LAYER$(I,T,Dlay);LAYER(I,T,lay);
3990 NEXT:PRINT:NEXT::
4000 FOR T=1 TO 64:FOR I=1 TO 64:LAYER$=LAYER$+LAYER$(I,T,DLAY):NEXT:DATAFLOOR$(T,DLAY)=LAYER$:LAYER$="":NEXT
4010 REM FOR I=1 TO 64:PRINT DATAFLOOR$(I,DLAY):NEXT
4020 NEXT
4030 FOR DLAY=0 TO 5:T=65:FOR I=1 TO 64:T=T-1:
4040 WRITE #1,DATAFLOOR$(I,DLAY),HEX$(T)+CHR$(44):NEXT:NEXT:CLOSE #1
4050 OPEN "LOGPIC.ASC" FOR OUTPUT AS #2
4060 FOR DLAY=0 TO 5:T=65:FOR I=1 TO 64:T=T-1:
4070 WRITE #2,DATAFLOOR$(I,DLAY),HEX$(T)+CHR$(44):NEXT:NEXT:WRITE #2,YY$+MM$+DD$+" DAYS END OF FILE"," ":CLOSE #2
4080 LOCATE 61,21:PRINT":MYPIC"+YY$+MM$+DD$+".ASC":LOCATE 61,22:PRINT"STATUS"
4090 LOCATE 61,23:PRINT"MATRIX X:64 Y:64":LOCATE 61,24:PRINT"/ LINE"
4100 COLOR@(0,0)-(79,24),0 :::
4110 CLS:GOSUB *REFRESHTXT:GOTO *FIELDCNT
4120 REM ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
4130 *SEQUENTIALLOAD
4140 YY$=LEFT$(DATE$,2):MM$=RIGHT$(DATE$,5):MM$=LEFT$(MM$,2):DD$=RIGHT$(DATE$,2)
4150 OPEN "MYPIC"+YY$+MM$+DD$+".ASC" FOR INPUT AS #3
4160 FOR T=1 TO 64:INPUT #3,DATAFLOOR$(T,0),CR$:NEXT
4170 FOR T=1 TO 64:FOR I=1 TO 64:LAYER(I,T,0)=VAL("&h"+RIGHT$(LEFT$(DATAFLOOR$(T,DLAY),I),1)):NEXT:NEXT
4180 CLOSE #3:
4190 REM FOR T=1 TO 64:FOR I=1 TO 64:PRINT LAYER(I,T,0);:NEXT:PRINT:NEXT:
4200 CLS:GOSUB *REFRESHTXT:GOTO *FIELDCNT
4210 ::
4220 ::
4230 *FDOT LOCATE 0,8:PRINT MSX;MSY,FMX;FMY,CP(I,T,DFL)
4240 J=0:WHILE J<1:MSX=MOUSE(0):MSY=MOUSE(1)
4250 IF MOUSE(2,1)=0 THEN J=1
4260 *DOTHIT
4270 FOR I=1 TO 64:FOR T=1 TO 64:
4280 IF (T*7)+20<MSX AND (T*7)+27>MSX THEN DOTX=T:
4290 NEXT T:IF (I*7)+20<MSY AND (I*7)+27>MSY THEN DOTY=I:
4300 NEXT I:LB=0
4310 FOR I=1 TO 64:FOR T=1 TO 64:
4320 IF (T*7)+20<MSX AND (T*7)+27>MSX THEN DOTXB=T:
4330 NEXT T:IF (I*7)+20<MSY AND (I*7)+27>MSY THEN DOTYB=I:
4340 NEXT I:LB=0
4350 IF DOTX<>DOTXB OR DOTY<>DOTYB THEN *DOTHIT
4360 IF DOTX>0 AND DOTY>0 AND DOTX<65 AND DOTY<65 THEN LINE(DOTX*7+13,DOTY*7+13)-(DOTX*7+20,DOTY*7+20),CP(DOTX,DOTY,DFL),BF:LAYER(DOTX,DOTY,LAY)=CP(DOTX,DOTY,DFL)
4370 WEND:
4380 GOTO *FIELDCNT
4390 END
4400 *FLINE CLK="0
4410" IF SWICH="0" THEN SWICH="1:GOTO" *AREASC
4420 IF DC="1" THEN *AREASC
4430 REM IF DOUBLE="1" THEN DOUBLE="0:GOTO" *AREASC
4440 IF UDX(IVC-1)=0 OR UDY(IVC-1)=0 THEN SWICH="1:GOTO" *AREASC
4450 IF UDX(IVC)=UDX(IVC-1) AND UDY(IVC)=UDY(IVC-1) THEN *AREASC
4460 IF MCX="MOUSE(4,1)" THEN ELSE *FIELDCNT
4470 IF XXL="1" OR UDX(IVC)=UDX(IVC-1) THEN *LINEHANDUD
4480 IF YYL="1" OR UDY(IVC)=UDY(IVC-1) THEN *LINEHANDRL
4490 IF XXL<0 AND YYL>0 THEN *LINEHANDRD
4500 IF XXL>0 AND YYL>0 THEN *LINEHANDLD
4510 IF XXL<0 AND YYL<0 THEN *LINEHANDRU
4520 IF XXL>0 AND YYL<0 THEN *LINEHANDLU
4530 *LINEHANDUD
4540 IF UDY(IVC)>UDY(IVC-1) THEN LHYY=UDY(IVC-1):LHYYL=YYL
4550 IF UDY(IVC)<UDY(IVC-1) THEN LHYY=UDY(IVC) :LHYYL=-YYL
4560 FOR I=LHYY TO LHYY+LHYYL STEP 1:
4570 LAYER(UDX(IVC),I,LAY)=CP(UDX(IVC),I,DFL):LINE(UDX(IVC)*7+13,I*7+13)-(UDX(IVC)*7+20,I*7+20),CP,BF:REM CP(UDX(IVC),I,DFL),BF
4580 NEXT:PRINT "ud";YYL;LHYY,"
4590 GOTO *AREASC
4600 *LINEHANDRL
4610 IF UDX(IVC)>UDX(IVC-1) THEN LHXX=UDX(IVC-1):LHXXL=XXL
4620 IF UDX(IVC)<UDX(IVC-1) THEN LHXX=UDX(IVC):LHXXL=-XXL
4630 FOR T=LHXX TO LHXX+LHXXL STEP 1:
4640 LAYER(T,UDY(IVC),5)=CP(T,UDY(IVC),DFL):LINE(T*7+13,UDY(IVC)*7+13)-(T*7+20,UDY(IVC)*7+20),CP,BF:REM CP(UDX(IVC),I,DFL),BF
4650 NEXT:PRINT "RL";XXL;LHXX,"
4660 GOTO *AREASC
4670 *LINEHANDRD
4680 XYL=XXL/YYL:STP=0:ISTP=0:BKSTP=0:
4690 FOR I=UDY(IVC-1) TO UDY(IVC) STEP 1:BKSTP=ISTP:STP=STP+XYL:ISTP=INT(STP)
4700 FOR T=UDX(IVC-1)+ISTP TO UDX(IVC-1)+BKSTP STEP 1:
4710 IF T>=UDX(IVC) AND T=<UDX(IVC-1) THEN LAYER(T,I,LAY)=CP(T,I,DFL):LINE(T*7+13,I*7+13)-(T*7+20,I*7+20),CP,BF:REM CP(UDX(IVC),I,DFL),BF
4720 NEXT:
4730 NEXT:PRINT "aa";XYL;STP;ISTP;BKSTP;YYL;T;I;" "
4740 GOTO *AREASC
4750 *LINEHANDLD
4760 XYL=XXL/YYL:STP=0:ISTP=0:BKSTP=0:
4770 FOR I=UDY(IVC-1) TO UDY(IVC) STEP 1:BKSTP=ISTP:STP=STP+XYL:ISTP=INT(STP)
4780 FOR T=UDX(IVC-1)+BKSTP TO UDX(IVC-1)+ISTP STEP 1:
4790 IF T>=UDX(IVC-1) AND T=<UDX(IVC) THEN LAYER(T,I,LAY)=CP(T,I,DFL):LINE(T*7+13,I*7+13)-(T*7+20,I*7+20),CP,BF:REM CP(UDX(IVC),I,DFL),BF
4800 NEXT:
4810 NEXT:PRINT "bb";XYL;STP;ISTP;BKSTP;T;I;"
4820 GOTO *AREASC
4830 *LINEHANDRU
4840 XYL=-XXL/-YYL:STP=0:ISTP=0:BKSTP=0:LOCATE 0,10:PRINT XYL;XXL;YYL," "
4850 FOR I=UDY(IVC) TO UDY(IVC-1) STEP 1:BKSTP=ISTP:STP=STP+XYL:ISTP=INT(STP)
4860 FOR T=UDX(IVC)+BKSTP TO UDX(IVC)+ISTP STEP 1:
4870 IF T>=UDX(IVC) AND T=<UDX(IVC-1) THEN LAYER(T,I,LAY)=CP(T,I,DFL):LINE(T*7+13,I*7+13)-(T*7+20,I*7+20),CP,BF:REM CP(UDX(IVC),I,DFL),BF
4880 NEXT:
4890 NEXT:PRINT "bb";XYL;STP;ISTP;BKSTP;T;I;"
4900 GOTO *AREASC
4910 *LINEHANDLU
4920 XYL=XXL/-YYL:STP=0:ISTP=0:BKSTP=0:
4930 FOR I=UDY(IVC) TO UDY(IVC-1) STEP 1:BKSTP=ISTP:STP=STP-XYL:ISTP=INT(STP):
4940 FOR T=UDX(IVC)+ISTP TO UDX(IVC)+BKSTP STEP 1:
4950 IF T>=UDX(IVC-1) AND T=<UDX(IVC) THEN LAYER(T,I,LAY)=CP(T,I,DFL):LINE(T*7+13,I*7+13)-(T*7+20,I*7+20),CP,BF:REM CP(UDX(IVC),I,DFL),BF
4960 NEXT:
4970 NEXT:PRINT "bb";XYL;STP;ISTP;BKSTP;T;I;"
4980 GOTO *AREASC
4990 *LINEUNDO
5000 REM FOR I=1 TO 64:FOR T=1 TO 64:
5010 END
5020 END
5030 END
5040 END
5050 END
5060 END
5070 END
5080 *TOOLS
5090 IF IVX(IVC)<488 THEN *FIELDCNT
5100 IF IVY(IVC)>39 AND IVY(IVC)<57 THEN *COLORPALLETE
5110 IF IVY(IVC)>58 AND IVY(IVC)<114 THEN *COLORCHANGE
5120 IF IVY(IVC)>115 AND IVY(IVC)<171 THEN *COLORLEVEL
5130 IF IVY(IVC)>172 AND IVY(IVC)<190 THEN *DITHER
5140 IF IVY(IVC)>191 AND IVY(IVC)<209 THEN *LINECARV
5150 IF IVY(IVC)>210 AND IVY(IVC)<228 THEN *PAINTPSET
5160 IF IVY(IVC)>229 AND IVY(IVC)<247 THEN *LAYERCHANGE
5170 IF IVY(IVC)>248 AND IVY(IVC)<285 THEN *PENCHANGE
5180 IF IVY(IVC)>286 AND IVY(IVC)<304 THEN *SPOITGLID
5190 IF IVY(IVC)>305 AND IVY(IVC)<323 THEN *UNDORESET
5200 IF IVY(IVC)>362 AND IVY(IVC)<380 THEN IF IVX(IVC)<MLC(77) AND IVX(IVC)>MLC(71) THEN *SEQUENTIALLOAD ELSE IF IVX(IVC)<MLC(71) THEN *SEQUENTIAL
5210 IF IVY(IVC)>362 AND IVY(IVC)<380 THEN IF IVX(IVC)<MLC(77) AND IVX(IVC)>MLC(71) THEN *SEQUENTIALLOAD ELSE IF IVX(IVC)<MLC(71) THEN *SEQUENTIAL
5220 IF IVY(IVC)>381 AND IVY(IVC)<399 THEN *FILENAME
5230 IVC=IVC-1
5240 GOTO *FIELDCNT
5250 END
5260 *COLORPALLETE
5270 FLAGCP=0
5280 FOR C=0 TO 15
5290 IF IVX(IVC)>MLCP(C+61) AND IVX(IVC)<MLCP(C+62) THEN FLAGCP=1:CP=C
5300 NEXT
5310 GOSUB *DITHERFILTERLING
5320 IF FLAGCP=1 THEN IF MOSE(2,2)<>0 THEN P=CP:BC=CP:FLAGCP=0
5330 IF BCP=CP THEN *FIELDCNT
5340 I=0:FOR C=61 TO 76:LINE (MLCP(C),MLFP(2))-(MLCP(C)+8,MLFP(3)),I,BF:I=I+1:NEXT C
5350 I=0:FOR C=61 TO 76
5360 IF CP=I THEN LINE (MLCP(C),37)-(MLCP(C+1),56),7,B
5370 I=I+1:NEXT:GOSUB *DITHERFILTERLING:GOTO *AREASC
5380 GOTO *FIELDCNT
5390 END
5400 *LINECARV
5410 IF IVX(IVC)>488 AND IVX(IVC)<520 THEN FLAGS$="LINE"
5420 IF IVX(IVC)>552 AND IVX(IVC)<584 THEN FLAGS$="CARV"
5430 IF IVC>1 THEN IVC=IVC-1 ELSE IF IVC=1 THEN IVC=99
5440 COLOR 0:LOCATE 61,23:PRINT"/ ";FLAGS$;" ":LOCATE 73,23:PRINT" "
5450 GOTO *FIELDCNT
5460 END
5470 *PAINTPSET
5480 IF IVX(IVC)>488 AND IVX(IVC)<528 THEN FLAGS$="PAINT"
5490 IF IVX(IVC)>552 AND IVX(IVC)<576 THEN FLAGS$="DOT"
5500 IF IVC>1 THEN IVC=IVC-1 ELSE IF IVC=1 THEN IVC=99
5510 COLOR 0:LOCATE 61,23:PRINT"/ ";FLAGS$;" ":LOCATE 73,23:PRINT" "
5520 GOTO *FIELDCNT
5530 END
5540 *PENCHANGE
5550 IF IVX(IVC)>520 AND IVX(IVC)<528 THEN FLAGS$="PEN":PENTYPE$="circle"
5560 IF IVX(IVC)>552 AND IVX(IVC)<560 THEN FLAGS$="PEN":PENTYPE$="box "
5570 IF IVX(IVC)>576 AND IVX(IVC)<584 THEN FLAGS$="PEN":PENS=3
5580 IF IVX(IVC)>592 AND IVX(IVC)<600 THEN FLAGS$="PEN":PENS=5
5590 IF IVC>1 THEN IVC=IVC-1 ELSE IF IVC=1 THEN IVC=99
5600 COLOR 0:LOCATE 61,23:PRINT"/ ";FLAGS$;PENS;PENTYPE$;
5610 GOTO *FIELDCNT
5620 END
5630 END
5640 END
5650 END
5660 END
5670 *FPEN
5680 IF MSX>468 THEN *TOOLS
5690 IF MSX<20 OR MSX<20 OR MSX>468 OR MSX>468 THEN *COUNTERA
5700 J=0:NULL=MOUSE(2,1):IF NULL=0 THEN *AREASC
5710 IF PENTYPE$="circle" AND PENS=5 THEN *CPENFIVE
5720 IF PENTYPE$="circle" AND PENS=3 THEN *CPENTHREE
5730 IF PENTYPE$="box " AND PENS=5 THEN *BPENL
5740 IF PENTYPE$="box " AND PENS=3 THEN *BPENS
5750 IF PENTYPE$="" OR PENS=0 THEN PENS=5:PENTYPE$="circle":GOTO *FPEN
5760 GOTO *AREASC
5770 END
5780 *CPENFIVE LOCATE 0,8:PRINT MSX;MSY,FMX;FMY
5790 GOSUB *DITHERFILTERLING:FOR T=1 TO 64:LOCATE 0,20:PRINT CP(T,1,LAY);CP(T,2,LAY);CP(T,3,LAY);CP(T,4,LAY);CP(T,5,LAY);CP(T,6,LAY);
5800 PRINT CP(T,7,LAY);CP(T,8,LAY);CP(T,9,LAY);CP(T,10,LAY);CP(T,11,LAY);CP(T,12,LAY);CP(T,13,LAY);
5810 PRINT CP(T,14,LAY);CP(T,15,LAY);CP(T,16,LAY);CP(T,17,LAY);CP(T,18,LAY);CP(T,19,LAY);CP(T,20,LAY);
5820 PRINT CP(T,21,LAY);CP(T,22,LAY);CP(T,23,LAY);CP(T,24,LAY);CP(T,25,LAY);CP(T,26,LAY);CP(T,27,LAY);
5830 PRINT CP(T,28,LAY);CP(T,29,LAY);CP(T,30,LAY);CP(T,31,LAY);CP(T,32,LAY);CP(T,33,LAY);CP(T,34,LAY);
5840 PRINT CP(T,35,LAY);CP(T,36,LAY);CP(T,37,LAY);CP(T,38,LAY);CP(T,39,LAY);CP(T,40,LAY);CP(T,41,LAY);
5850 PRINT CP(T,42,LAY);CP(T,42,LAY);CP(T,43,LAY);CP(T,44,LAY);CP(T,45,LAY);CP(T,46,LAY);CP(T,47,LAY);
5860 PRINT CP(T,48,LAY);CP(T,49,LAY);CP(T,50,LAY);CP(T,51,LAY);CP(T,52,LAY);CP(T,53,LAY);CP(T,54,LAY);
5870 PRINT CP(T,55,LAY);CP(T,56,LAY);CP(T,57,LAY);CP(T,58,LAY);CP(T,59,LAY);CP(T,60,LAY);CP(T,61,LAY);CP(T,62,LAY);CP(T,63,LAY);CP(T,64,LAY);
5880 NEXT
5890 J=0:WHILE J<1:MSX=MOUSE(0):MSY=MOUSE(1):DFL=1
5900 IF MOUSE(2,1)=0 THEN J=1
5910 FOR I=1 TO 64:FOR T=1 TO 64:
5920 IF T*7+13<MSX AND T*7+20>MSX THEN PENX=T:
5930 NEXT T:IF I*7+13<MSY AND I*7+20>MSY THEN PENY=I:
5940 NEXT I:LB=0
5950 IF PENX>0 AND PENY>0 AND PENX<65 AND PENY<65 THEN LINE(PENX*7+13,PENY*7+13)-(PENX*7+20,PENY*7+20),CP,BF:REM CP(PENX,PENY,DFL),BF:LAYER(PENX,PENY,LAY)=CP(PENX,PENY,DFL)
5960 IF PENX>1 AND PENY>2 THEN LINE(PENX*7-7+13,PENY*7-14+13)-(PENX*7-7+20,PENY*7-14+20),CP,BF:REM CP(PENX-1,PENY-2,DFL),BF:LAYER(PENX-1,PENY-2,LAY)=CP(PENX-1,PENY-2,DFL)
5970 IF PENX>2 AND PENY>1 THEN LINE(PENX*7-14+13,PENY*7-7+13)-(PENX*7-14+20,PENY*7-7+20),CP,BF:REM CP(PENX-2,PENY-1,DFL),BF:LAYER(PENX-2,PENY-1,LAY)=CP(PENX-2,PENY-1,DFL)
5980 IF PENX>2 AND PENY>0 THEN LINE(PENX*7-14+13,PENY*7+0+13)-(PENX*7-14+20,PENY*7+0+20),CP,BF:REM CP(PENX-2,PENY ,DFL),BF:LAYER(PENX-2,PENY ,LAY)=CP(PENX-2,PENX ,DFL)
5990 IF PENX>2 AND PENY<64 THEN LINE(PENX*7-14+13,PENY*7+7+13)-(PENX*7-14+20,PENY*7+7+20),CP,BF:REM CP(PENX-2,PENY+1,DFL),BF:LAYER(PENX-2,PENY+1,LAY)=CP(PENX-2,PENY+1,DFL)
6000 IF PENX>1 AND PENY<63 THEN LINE(PENX*7-7+13,PENY*7+14+13)-(PENX*7-7+20,PENY*7+14+20),CP,BF:REM CP(PENX-1,PENY+2,DFL),BF:LAYER(PENX-1,PENY+2,LAY)=CP(PENX-1,PENY+2,DFL)
6010 IF PENX>1 AND PENY>1 THEN LINE(PENX*7-7+13,PENY*7-7+13)-(PENX*7-7+20,PENY*7-7+20),CP,BF:REM CP(PENX-1,PENY-1,DFL),BF:LAYER(PENX-1,PENY-1,LAY)=CP(PENX-1,PENY-1,DFL)
6020 IF PENX>1 AND PENY>0 THEN LINE(PENX*7-7+13,PENY*7+0+13)-(PENX*7-7+20,PENY*7+0+20),CP,BF:REM CP(PENX-1,PENY ,DFL),BF:LAYER(PENX-1,PENY ,LAY)=CP(PENX-1,PENX ,DFL)
6030 IF PENX>1 AND PENY<64 THEN LINE(PENX*7-7+13,PENY*7+7+13)-(PENX*7-7+20,PENY*7+7+20),CP,BF:REM CP(PENX-1,PENY+1,DFL),BF:LAYER(PENX-1,PENY+1,LAY)=CP(PENX-1,PENY+1,DFL)
6040 IF PENX>0 AND PENY>2 THEN LINE(PENX*7-0+13,PENY*7-14+13)-(PENX*7-0+20,PENY*7-14+20),CP,BF:REM CP(PENX ,PENY-2,DFL),BF:LAYER(PENX ,PENY-2,LAY)=CP(PENX ,PENY-2,DFL)
6050 IF PENX>0 AND PENY>1 THEN LINE(PENX*7-0+13,PENY*7-7+13)-(PENX*7-0+20,PENY*7-7+20),CP,BF:REM CP(PENX ,PENY-1,DFL),BF:LAYER(PENX ,PENY-1,LAY)=CP(PENX ,PENY-1,DFL)
6060 IF PENX>0 AND PENY<64 THEN LINE(PENX*7-0+13,PENY*7+7+13)-(PENX*7-0+20,PENY*7+7+20),CP,BF:REM CP(PENX ,PENY+1,DFL),BF:LAYER(PENX ,PENY+1,LAY)=CP(PENX ,PENY+1,DFL)
6070 IF PENX>0 AND PENY<63 THEN LINE(PENX*7-0+13,PENY*7+14+13)-(PENX*7-0+20,PENY*7+14+20),CP,BF:REM CP(PENX ,PENY+2,DFL),BF:LAYER(PENX ,PENY+2,LAY)=CP(PENX ,PENY+2,DFL)
6080 IF PENX<64 AND PENY>2 THEN LINE(PENX*7+7+13,PENY*7-14+13)-(PENX*7+7+20,PENY*7-14+20),CP,BF:REM CP(PENX+1,PENY-2,DFL),BF:LAYER(PENX+1,PENY-2,LAY)=CP(PENX+1,PENY-2,DFL)
6090 IF PENX<63 AND PENY>1 THEN LINE(PENX*7+14+13,PENY*7-7+13)-(PENX*7+14+20,PENY*7-7+20),CP,BF:REM CP(PENX+2,PENY-1,DFL),BF:LAYER(PENX+2,PENY-1,LAY)=CP(PENX+2,PENY-1,DFL)
6100 IF PENX<63 AND PENY>0 THEN LINE(PENX*7+14+13,PENY*7+0+13)-(PENX*7+14+20,PENY*7+0+20),CP,BF:REM CP(PENX+2,PENY ,DFL),BF:LAYER(PENX+2,PENY ,LAY)=CP(PENX+2,PENY ,DFL)
6110 IF PENX<63 AND PENY<64 THEN LINE(PENX*7+14+13,PENY*7+7+13)-(PENX*7+14+20,PENY*7+7+20),CP,BF:REM CP(PENX+2,PENY+1,DFL),BF:LAYER(PENX+2,PENY+1,LAY)=CP(PENX+2,PENY+1,DFL)
6120 IF PENX<64 AND PENY<63 THEN LINE(PENX*7+7+13,PENY*7+14+13)-(PENX*7+7+20,PENY*7+14+20),CP,BF:REM CP(PENX+1,PENY+2,DFL),BF:LAYER(PENX+1,PENY+2,LAY)=CP(PENX+1,PENY+2,DFL)
6130 IF PENX<64 AND PENY>1 THEN LINE(PENX*7+7+13,PENY*7-7+13)-(PENX*7+7+20,PENY*7-7+20),CP,BF:REM CP(PENX+1,PENY-1,DFL),BF:LAYER(PENX+1,PENY-1,LAY)=CP(PENX+1,PENY-1,DFL)
6140 IF PENX<64 AND PENY>0 THEN LINE(PENX*7+7+13,PENY*7+0+13)-(PENX*7+7+20,PENY*7+0+20),CP,BF:REM CP(PENX+1,PENY ,DFL),BF:LAYER(PENX+1,PENY ,LAY)=CP(PENX+1,PENY ,DFL)
6150 IF PENX<64 AND PENY<64 THEN LINE(PENX*7+7+13,PENY*7+7+13)-(PENX*7+7+20,PENY*7+7+20),CP,BF:REM CP(PENX+1,PENY+1,DFL),BF:LAYER(PENX+1,PENY+1,LAY)=CP(PENX+1,PENY+1,DFL)
6160 REM LOCATE 0,22:PRINT LAY;" ";CP(PENX,PENY,LAY);CP(PENX-1,PENY-2,LAY);CP(PENX-2,PENY+1,LAY);CP(PENX-2,PENY ,LAY);CP(PENX-2,PENY+1,LAY);CP(PENX-2,PENY+1,LAY);CP(PENX-1,PENY-1,LAY);
6170 REM LOCATE 0,23:PRINT CP(PENX-1,PENY ,LAY);CP(PENX-1,PENY+1,LAY);CP(PENX ,PENY-2,LAY);CP(PENX ,PENY-1,LAY);CP(PENX ,PENY+1,LAY);CP(PENX ,PENY+2,LAY);CP(PENX+1,PENY-2,LAY);
6180 REM LOCATE 0,24:PRINT CP(PENX+2,PENY-1,LAY);CP(PENX+2,PENY ,LAY);CP(PENX+2,PENY+1,LAY);CP(PENX+1,PENY+2,LAY);CP(PENX+1,PENY ,LAY);CP(PENX+1,PENY+1,LAY);
6190 WEND
6200 GOTO *AREASC
6210 END
6220 *CPENTHREE
6230 LOCATE 0,8:PRINT MSX;MSY,FMX;FMY,CP(I,T,LAY)
6240 J="0:WHILE" J<1:MSX=MOUSE(0):MSY=MOUSE(1)
6250 IF MOUSE(2,1)=0 THEN J="1
6260" FOR I="1" TO 64:FOR T="1" TO 64:
6270 IF T*7+20<MSX AND T*7+27>MSX THEN PENX=T:
6280 NEXT T:IF I*7+20<MSY AND I*7+27>MSY THEN PENY=I:
6290 NEXT I:LB=0
6300 IF PENX>0 AND PENY>0 AND PENX<65 AND PENY<65 THEN LINE(PENX*7+13,PENY*7+13)-(PENX*7+27,PENY*7+27),CP,BF:REM CP(PENX,PENY,DFL),BF:LAYER(PENX,PENY,LAY)=CP(PENX,PENY,DFL)
6310 IF PENX>1 AND PENY>0 THEN LINE(PENX*7-7+13,PENY*7+0+13)-(PENX*7-7+20,PENY*7+0+20),CP,BF:REM CP(PENX-1,PENY ,DFL ),BF :LAYER(PENX-1,PENY ,LAY)=CP(PENX-1,PENY,DFL)
6320 IF PENX<64 AND PENY>0 THEN LINE(PENX*7+7+13,PENY*7+0+13)-(PENX*7+7+20,PENY*7+0+20),CP,BF:REM CP(PENX+1,PENY ,DFL ),BF :LAYER(PENX+1,PENY ,LAY)=CP(PENX+1,PENY,DFL)
6330 IF PENX>0 AND PENY<64 THEN LINE(PENX*7-0+13,PENY*7+7+13)-(PENX*7-0+20,PENY*7+7+20),CP,BF:REM CP(PENX ,PENY+1,DFL ),BF :LAYER(PENX ,PENY+1,LAY)=CP(PENX,PENY+1,DFL)
6340 IF PENX>0 AND PENY>1 THEN LINE(PENX*7-0+13,PENY*7-7+13)-(PENX*7-0+20,PENY*7-7+20),CP,BF:REM CP(PENX ,PENY-1,DFL ),BF :LAYER(PENX ,PENY-1,LAY)=CP(PENX,PENY-1,DFL)
6350 WEND
6360 GOTO *AREASC
6370 END
6380 *BPENL LOCATE 0,8:PRINT MSX;MSY,FMX;FMY,CP(I,T,DFL)
6390 J=0:J=0:WHILE J<1:MSX=MOUSE(0):MSY=MOUSE(1)
6400 IF MOUSE(2,1)=0 THEN J=1
6410 FOR I=1 TO 64:FOR T=1 TO 64:
6420 IF T*7+20<MSX AND T*7+27>MSX THEN PENX=T:
6430 NEXT T:IF I*7+20<MSY AND I*7+27>MSY THEN PENY=I:
6440 NEXT I:LB=0
6450 IF PENX>0 AND PENY>0 AND PENX<65 AND PENY<65 THEN LINE(PENX*7+13,PENY*7+13)-(PENX*7+20,PENY*7+20),CP,BF:REM CP(PENX,PENY,DFL),BF:LAYER(PENX,PENY,LAY)=CP(PENX,PENY,DFL)
6460 IF PENX>1 AND PENY>2 THEN LINE(PENX*7-7 +13,PENY*7-14+13)-(PENX*7 -7+20,PENY*7-14+20),CP,BF:REM CP(PENX+1,PENY-2,DFL),BF:LAYER(PENX+1,PENY-2,LAY)=CP(PENX+1,PENY-2,DFL)
6470 IF PENX>2 AND PENY>1 THEN LINE(PENX*7-14+13,PENY*7-7+13)-(PENX*7-14+20,PENY*7-7+20),CP,BF:REM CP(PENX-2,PENY-1,DFL),BF:LAYER(PENX-2,PENY-1,LAY)=CP(PENX-2,PENY-1,DFL)
6480 IF PENX>2 AND PENY>0 THEN LINE(PENX*7-14+13,PENY*7+0+13)-(PENX*7-14+20,PENY*7+0+20),CP,BF:REM CP(PENX-2,PENY ,DFL),BF:LAYER(PENX-2,PENY ,LAY)=CP(PENX-2,PENY ,DFL)
6490 IF PENX>2 AND PENY<64 THEN LINE(PENX*7-14+13,PENY*7+7+13)-(PENX*7-14+20,PENY*7+7+20),CP,BF:REM CP(PENX-2,PENY+1,DFL),BF:LAYER(PENX-2,PENY+1,LAY)=CP(PENX-2,PENY+1,DFL)
6500 IF PENX>1 AND PENY<63 THEN LINE(PENX*7-7+13,PENY*7+14+13)-(PENX*7-7+20,PENY*7+14+20),CP,BF:REM CP(PENX-1,PENY+2,DFL),BF:LAYER(PENX-1,PENY+2,LAY)=CP(PENX-1,PENY+2,DFL)
6510 IF PENX>1 AND PENY>1 THEN LINE(PENX*7-7+13,PENY*7-7+13)-(PENX*7-7+20,PENY*7-7+20),CP,BF:REM CP(PENX-1,PENY-1,DFL),BF:LAYER(PENX-1,PENY-1,LAY)=CP(PENX-1,PENY-1,DFL)
6520 IF PENX>1 AND PENY>0 THEN LINE(PENX*7-7+13,PENY*7+0+13)-(PENX*7-7+20,PENY*7+0+20),CP,BF:REM CP(PENX-1,PENY ,DFL),BF:LAYER(PENX-1,PENY ,LAY)=CP(PENX-1,PENY ,DFL)
6530 IF PENX>1 AND PENY<64 THEN LINE(PENX*7-7+13,PENY*7+7+13)-(PENX*7-7+20,PENY*7+7+20),CP,BF:REM CP(PENX ,PENY+1,DFL),BF:LAYER(PENX ,PENY+1,LAY)=CP(PENX ,PENY-2,DFL)
6540 IF PENX>0 AND PENY>2 THEN LINE(PENX*7-0+13,PENY*7-14+13)-(PENX*7-0+20,PENY*7-14+20),CP,BF:REM CP(PENX ,PENY-2,DFL),BF:LAYER(PENX ,PENY-2,LAY)=CP(PENX ,PENY-1,DFL)
6550 IF PENX>0 AND PENY>1 THEN LINE(PENX*7-0+13,PENY*7-7+13)-(PENX*7-0+20,PENY*7-7+20),CP,BF:REM CP(PENX ,PENY-1,DFL),BF:LAYER(PENX ,PENY-1,LAY)=CP(PENX ,PENY-1,DFL)
6560 IF PENX>0 AND PENY<64 THEN LINE(PENX*7-0+13,PENY*7+7+13)-(PENX*7-0+20,PENY*7+7+20),CP,BF:REM CP(PENX ,PENY+1,DFL),BF:LAYER(PENX ,PENY+1,LAY)=CP(PENX ,PENY+1,DFL)
6570 IF PENX>0 AND PENY<63 THEN LINE(PENX*7-0+13,PENY*7+14+13)-(PENX*7-0+20,PENY*7+14+20),CP,BF:REM CP(PENX ,PENY+2,DFL),BF:LAYER(PENX ,PENY+2,LAY)=CP(PENX ,PENY+2,DFL)
6580 IF PENX<64 AND PENY>2 THEN LINE(PENX*7+7+13,PENY*7-14+13)-(PENX*7+7+20,PENY*7-14+20),CP,BF:REM CP(PENX+1,PENY-2,DFL),BF:LAYER(PENX+1,PENY-2,LAY)=CP(PENX+1,PENY-2,DFL)
6590 IF PENX<63 AND PENY>1 THEN LINE(PENX*7+14+13,PENY*7-7+13)-(PENX*7+14+20,PENY*7-7+20),CP,BF:REM CP(PENX+2,PENY-1,DFL),BF:LAYER(PENX+2,PENY-1,LAY)=CP(PENX+2,PENY-1,DFL)
6600 IF PENX<63 AND PENY>0 THEN LINE(PENX*7+14+13,PENY*7+0+13)-(PENX*7+14+20,PENY*7+0+20),CP,BF:REM CP(PENX+2,PENY ,DFL),BF:LAYER(PENX+2,PENY ,LAY)=CP(PENX+2,PENY ,DFL)
6610 IF PENX<63 AND PENY<64 THEN LINE(PENX*7+14+13,PENY*7+7+13)-(PENX*7+14+20,PENY*7+7+20),CP,BF:REM CP(PENX+2,PENY+1,DFL),BF:LAYER(PENX+2,PENY+1,LAY)=CP(PENX+2,PENY+1,DFL)
6620 IF PENX<64 AND PENY<63 THEN LINE(PENX*7+7+13,PENY*7+14+13)-(PENX*7+7+20,PENY*7+14+20),CP,BF:REM CP(PENX+1,PENY+2,DFL),BF:LAYER(PENX+1,PENY+2,LAY)=CP(PENX+1,PENY+2,DFL)
6630 IF PENX<64 AND PENY>1 THEN LINE(PENX*7+7+13,PENY*7-7+13)-(PENX*7+7+20,PENY*7-7+20),CP,BF:REM CP(PENX+1,PENY-1,DFL),BF:LAYER(PENX+1,PENY-1,LAY)=CP(PENX+1,PENY-1,DFL)
6640 IF PENX<64 AND PENY>0 THEN LINE(PENX*7+7+13,PENY*7+0+13)-(PENX*7+7+20,PENY*7+0+20),CP,BF:REM CP(PENX+1,PENY ,DFL),BF:LAYER(PENX+1,PENY ,LAY)=CP(PENX+1,PENY ,DFL)
6650 IF PENX<64 AND PENY<64 THEN LINE(PENX*7+7+13,PENY*7+7+13)-(PENX*7+7+20,PENY*7+7+20),CP,BF:REM CP(PENX+1,PENY+1,DFL),BF:LAYER(PENX+1,PENY+1,LAY)=CP(PENX+1,PENY+1,DFL)
6660 IF PENX>2 AND PENY<63 THEN LINE(PENX*7-14+13,PENY*7+14+13)-(PENX*7-14+20,PENY*7+14+20),CP,BF:REM CP(PENX-2,PENY+2,DFL),BF:LAYER(PENX-2,PENY+2,LAY)=CP(PENX-2,PENY+2,DFL)
6670 IF PENX<63 AND PENY<63 THEN LINE(PENX*7+14+13,PENY*7+14+13)-(PENX*7+14+20,PENY*7+14+20),CP,BF:REM CP(PENX+2,PENY+2,DFL),BF:LAYER(PENX+2,PENY+2,LAY)=CP(PENX+2,PENY+2,DFL)
6680 IF PENX<63 AND PENY>2 THEN LINE(PENX*7+14+13,PENY*7-14+13)-(PENX*7+14+20,PENY*7-14+20),CP,BF:REM CP(PENX+2,PENY-2,DFL),BF:LAYER(PENX+2,PENY-2,LAY)=CP(PENX+2,PENY-2,DFL)
6690 IF PENX>2 AND PENY>2 THEN LINE(PENX*7-14+13,PENY*7-14+13)-(PENX*7-14+20,PENY*7-14+20),CP,BF:REM CP(PENX-2,PENY-2,DFL),BF:LAYER(PENX-2,PENY-2,LAY)=CP(PENX-2,PENY-2,DFL)
6700 WEND
6710 GOTO *AREASC
6720 END
6730 *BPENS
6740 LOCATE 0,8:PRINT MSX;MSY,FMX;FMY,CP(I,T,FL)
6750 J=0:WHILE J<1:MSX=MOUSE(0):MSY=MOUSE(1)
6760 IF MOUSE(2,1)=0 THEN J=1
6770 FOR I=1 TO 64:FOR T=1 TO 64:
6780 IF T*7+13<MSX AND T*7+20>MSX THEN PENX=T:
6790 NEXT T:IF I*7+13<MSY AND I*7+20>MSY THEN PENY=I:
6800 NEXT I:LB=0
6810 IF PENX>0 AND PENY>0 AND PENX<65 AND PENY<65 THEN LINE(PENX*7+13,PENY*7+13)-(PENX*7+20,PENY*7+20),CP,BF:REM CP(PENX,PENY,DFL),BF:LAYER(PENX,PENY,DFL)=CP(PENX,PENY,DFL)
6820 IF PENX>1 AND PENY>0 THEN LINE(PENX*7+7+13,PENY*7+0+13)-(PENX*7+7+20,PENY*7+0+20),CP,BF:REM CP(PENX+1,PENY ,DFL),BF :LAYER(PENX+1,PENY ,LAY)=CP(PENX-1,PENY ,DFL )
6830 IF PENX<64 AND PENY>0 THEN LINE(PENX*7-7+13,PENY*7+0+13)-(PENX*7-7+20,PENY*7+0+20),CP,BF:REM CP(PENX-1,PENY ,DFL),BF :LAYER(PENX-1,PENY ,LAY)=CP(PENX-1,PENY ,DFL )
6840 IF PENX>0 AND PENY<64 THEN LINE(PENX*7-0+13,PENY*7-7+13)-(PENX*7-0+20,PENY*7-7+20),CP,BF:REM CP(PENX ,PENY-1,DFL),BF :LAYER(PENX ,PENY-1,LAY)=CP(PENX ,PENY-1,DFL )
6850 IF PENX>0 AND PENY>1 THEN LINE(PENX*7-0+13,PENY*7+7+13)-(PENX*7-0+20,PENY*7+7+20),CP,BF:REM CP(PENX ,PENY+1,DFL),BF :LAYER(PENX ,PENY+1,LAY)=CP(PENX ,PENY+1,DFL )
6860 IF PENX>1 AND PENY>1 THEN LINE(PENX*7-7+13,PENY*7-7+13)-(PENX*7-7+20,PENY*7-7+20),CP,BF:REM CP(PENX-1,PENY-1,DFL),BF :LAYER(PENX-1,PENY-1,LAY)=CP(PENX-1,PENY-1,DFL )
6870 IF PENX<64 AND PENY>1 THEN LINE(PENX*7+7+13,PENY*7-7+13)-(PENX*7+7+20,PENY*7-7+20),CP,BF:REM CP(PENX+1,PENY-1,DFL),BF :LAYER(PENX-1,PENY+1,LAY)=CP(PENX-1,PENY+1,DFL )
6880 IF PENX>1 AND PENY<64 THEN LINE(PENX*7-7+13,PENY*7+7+13)-(PENX*7-7+20,PENY*7+7+20),CP,BF:REM CP(PENX-1,PENY+1,DFL),BF :LAYER(PENX-1,PENY+1,LAY)=CP(PENX-1,PENY+1,DFL )
6890 IF PENX<64 AND PENY<64 THEN LINE(PENX*7+7+13,PENY*7+7+13)-(PENX*7+7+20,PENY*7+7+20),CP,BF:REM CP(PENX+1,PRNY+1,DFL),BF :LAYER(PENX+1,PENY+1,LAY)=CP(PENX+1,PENY+1,DFL )
6900 WEND
6910 GOTO *AREASC
6920 *COLORCHANGE
6930 END IF:GOTO *AREASC