home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FreeWare Collection 2
/
FreeSoftwareCollection2pd199x-jp.img
/
kxc
/
ms_dos
/
tf02mini
/
tfxpr01.bas
< prev
next >
Wrap
BASIC Source File
|
1990-06-14
|
1KB
|
47 lines
1000 OPEN "R",#1,"1:(7)PLANET.TFX"
1010 FIELD #1,7 AS A$
1020 PX=180/3.14159!:R=128
1030 FOR I=30 TO 150 STEP 30
1040 R0=R*SIN(I/PX)
1050 Z=R*COS(I/PX)+200
1060 FOR J=0 TO 360 STEP 30
1070 X=R0*COS(J/PX)+320
1080 Y=R0*SIN(J/PX)+200
1090 B$=CHR$(X MOD 256)+CHR$(X\256)
1100 B$=B$+CHR$(Y MOD 256)+CHR$(Y\256)
1110 B$=B$+CHR$(Z MOD 256)+CHR$(Z\256)
1120 IF J=360 ELSE B$=B$+CHR$(0):GOTO 1140
1130 B$=B$+CHR$(1)
1140 LSET A$=B$:PUT #1
1150 NEXT
1160 NEXT
1170 FOR I=30 TO 150 STEP 30
1180 R0=R*SIN(I/PX)
1190 X=R*COS(I/PX)+320
1200 FOR J=0 TO 360 STEP 30
1210 Y=R0*COS(J/PX)+200
1220 Z=R0*SIN(J/PX)+200
1230 B$=CHR$(X MOD 256)+CHR$(X\256)
1240 B$=B$+CHR$(Y MOD 256)+CHR$(Y\256)
1250 B$=B$+CHR$(Z MOD 256)+CHR$(Z\256)
1260 IF J=360 ELSE B$=B$+CHR$(0):GOTO 1280
1270 B$=B$+CHR$(1)
1280 LSET A$=B$:PUT #1
1290 NEXT
1300 NEXT
1310 FOR I=30 TO 150 STEP 30
1320 R0=R*SIN(I/PX)
1330 Y=R*COS(I/PX)+200
1340 FOR J=0 TO 360 STEP 20
1350 Z=R0*COS(J/PX)+200
1360 X=R0*SIN(J/PX)+320
1370 B$=CHR$(X MOD 256)+CHR$(X\256)
1380 B$=B$+CHR$(Y MOD 256)+CHR$(Y\256)
1390 B$=B$+CHR$(Z MOD 256)+CHR$(Z\256)
1400 IF J=360 ELSE B$=B$+CHR$(0):GOTO 1420
1410 IF I=150 THEN B$=B$+CHR$(2) ELSE B$=B$+CHR$(1)
1420 LSET A$=B$:PUT #1
1430 NEXT
1440 NEXT
1450 CLOSE #1