Home » Archimedes archive » Micro User » MU 1991-09.adf » PD-Stuff » FracTrace/FTS-Files/SnowycFTS
FracTrace/FTS-Files/SnowycFTS
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Micro User » MU 1991-09.adf » PD-Stuff |
Filename: | FracTrace/FTS-Files/SnowycFTS |
Read OK: | ✔ |
File size: | 097B bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
\ FTS test-demo file... \ Creates a sequence of images resembling the 'Beauty of Fractals' cover \ (c)1990 C. Declerck \ set title title snowy \ set appropriate title \ declare vars. to be used var xdirection, ydirection, anglestep \ set parameters for animation frames 16 \ maximum number of frames is 16 scope 1 16 \ create frames 1 through 16 \ initialize variables anglestep=360/frames \ anglestep is just a constant xdirection=COSRAD(frame*anglestep) \ X-direction of lightbeam ydirection=SINRAD(frame*anglestep) \ Y-direction of lightbeam \ set parameters for fractal set calculations \ (only executed in first parse) if frame=1 \ only execute in first parse mandelbrot \ set type is Mandelbrot resolution 300,300 \ resolution of image range -0.1992,-0.12954,1,1.06707 \ specify which part of set to draw cval 0,1 \ not of use here (only for Julia sets) smoothness 220 \ smoothness of surface depth 100 \ maximum iteration depth endif \ endif \ set parameters for raytracing calculations mountains \ render image in mountain-style light xdirection,ydirection,-2 \ light-direction (frame-dependant) brightness 52 \ brightness of image steepness 175 \ steepness of mountain slopes dithering 12 \ rather broad color-dithering shadows off \ don't calculate shadows interpolation off \ don't use interpolation \ set parameters for screen output offset 40,300 \ position image in middle of screen angle 0,25 \ look at surface from above increment 4,4 \ pixel increment steps slope front 40,7 \ force foremost slope down \ set colors for surface color 15,15,15 \ color of image is white
00000000 5c 20 46 54 53 20 74 65 73 74 2d 64 65 6d 6f 20 |\ FTS test-demo | 00000010 66 69 6c 65 2e 2e 2e 0a 5c 20 43 72 65 61 74 65 |file....\ Create| 00000020 73 20 61 20 73 65 71 75 65 6e 63 65 20 6f 66 20 |s a sequence of | 00000030 69 6d 61 67 65 73 20 72 65 73 65 6d 62 6c 69 6e |images resemblin| 00000040 67 20 74 68 65 20 27 42 65 61 75 74 79 20 6f 66 |g the 'Beauty of| 00000050 20 46 72 61 63 74 61 6c 73 27 20 63 6f 76 65 72 | Fractals' cover| 00000060 0a 5c 20 28 63 29 31 39 39 30 20 43 2e 20 44 65 |.\ (c)1990 C. De| 00000070 63 6c 65 72 63 6b 0a 20 20 20 20 20 20 20 0a 5c |clerck. .\| 00000080 20 73 65 74 20 74 69 74 6c 65 20 20 20 20 20 20 | set title | 00000090 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000000a0 20 20 20 20 20 20 20 20 20 20 20 20 0a 0a 74 69 | ..ti| 000000b0 74 6c 65 20 73 6e 6f 77 79 20 20 20 20 20 20 20 |tle snowy | 000000c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000000d0 20 20 20 20 5c 20 73 65 74 20 61 70 70 72 6f 70 | \ set approp| 000000e0 72 69 61 74 65 20 74 69 74 6c 65 0a 0a 5c 20 64 |riate title..\ d| 000000f0 65 63 6c 61 72 65 20 76 61 72 73 2e 20 74 6f 20 |eclare vars. to | 00000100 62 65 20 75 73 65 64 0a 0a 76 61 72 20 78 64 69 |be used..var xdi| 00000110 72 65 63 74 69 6f 6e 2c 20 79 64 69 72 65 63 74 |rection, ydirect| 00000120 69 6f 6e 2c 20 61 6e 67 6c 65 73 74 65 70 0a 20 |ion, anglestep. | 00000130 20 20 20 20 20 20 20 20 20 20 0a 5c 20 73 65 74 | .\ set| 00000140 20 70 61 72 61 6d 65 74 65 72 73 20 66 6f 72 20 | parameters for | 00000150 61 6e 69 6d 61 74 69 6f 6e 0a 0a 66 72 61 6d 65 |animation..frame| 00000160 73 20 31 36 20 20 20 20 20 20 20 20 20 20 20 20 |s 16 | 00000170 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000180 5c 20 6d 61 78 69 6d 75 6d 20 6e 75 6d 62 65 72 |\ maximum number| 00000190 20 6f 66 20 66 72 61 6d 65 73 20 69 73 20 31 36 | of frames is 16| 000001a0 0a 73 63 6f 70 65 20 31 20 31 36 20 20 20 20 20 |.scope 1 16 | 000001b0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000001c0 20 20 20 20 20 20 5c 20 63 72 65 61 74 65 20 66 | \ create f| 000001d0 72 61 6d 65 73 20 31 20 74 68 72 6f 75 67 68 20 |rames 1 through | 000001e0 31 36 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 |16. | 000001f0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000200 20 0a 5c 20 69 6e 69 74 69 61 6c 69 7a 65 20 76 | .\ initialize v| 00000210 61 72 69 61 62 6c 65 73 0a 0a 61 6e 67 6c 65 73 |ariables..angles| 00000220 74 65 70 3d 33 36 30 2f 66 72 61 6d 65 73 20 20 |tep=360/frames | 00000230 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000240 5c 20 61 6e 67 6c 65 73 74 65 70 20 69 73 20 6a |\ anglestep is j| 00000250 75 73 74 20 61 20 63 6f 6e 73 74 61 6e 74 0a 78 |ust a constant.x| 00000260 64 69 72 65 63 74 69 6f 6e 3d 43 4f 53 52 41 44 |direction=COSRAD| 00000270 28 66 72 61 6d 65 2a 61 6e 67 6c 65 73 74 65 70 |(frame*anglestep| 00000280 29 20 20 20 20 5c 20 58 2d 64 69 72 65 63 74 69 |) \ X-directi| 00000290 6f 6e 20 6f 66 20 6c 69 67 68 74 62 65 61 6d 0a |on of lightbeam.| 000002a0 79 64 69 72 65 63 74 69 6f 6e 3d 53 49 4e 52 41 |ydirection=SINRA| 000002b0 44 28 66 72 61 6d 65 2a 61 6e 67 6c 65 73 74 65 |D(frame*angleste| 000002c0 70 29 20 20 20 20 5c 20 59 2d 64 69 72 65 63 74 |p) \ Y-direct| 000002d0 69 6f 6e 20 6f 66 20 6c 69 67 68 74 62 65 61 6d |ion of lightbeam| 000002e0 0a 0a 5c 20 73 65 74 20 70 61 72 61 6d 65 74 65 |..\ set paramete| 000002f0 72 73 20 66 6f 72 20 66 72 61 63 74 61 6c 20 73 |rs for fractal s| 00000300 65 74 20 63 61 6c 63 75 6c 61 74 69 6f 6e 73 0a |et calculations.| 00000310 5c 20 28 6f 6e 6c 79 20 65 78 65 63 75 74 65 64 |\ (only executed| 00000320 20 69 6e 20 66 69 72 73 74 20 70 61 72 73 65 29 | in first parse)| 00000330 0a 0a 69 66 20 66 72 61 6d 65 3d 31 20 20 20 20 |..if frame=1 | 00000340 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000350 20 20 20 20 20 20 20 20 5c 20 6f 6e 6c 79 20 65 | \ only e| 00000360 78 65 63 75 74 65 20 69 6e 20 66 69 72 73 74 20 |xecute in first | 00000370 70 61 72 73 65 0a 20 6d 61 6e 64 65 6c 62 72 6f |parse. mandelbro| 00000380 74 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |t | 00000390 20 20 20 20 20 20 20 20 20 20 20 20 5c 20 73 65 | \ se| 000003a0 74 20 74 79 70 65 20 69 73 20 4d 61 6e 64 65 6c |t type is Mandel| 000003b0 62 72 6f 74 0a 20 72 65 73 6f 6c 75 74 69 6f 6e |brot. resolution| 000003c0 20 33 30 30 2c 33 30 30 20 20 20 20 20 20 20 20 | 300,300 | 000003d0 20 20 20 20 20 20 20 20 20 20 20 5c 20 72 65 73 | \ res| 000003e0 6f 6c 75 74 69 6f 6e 20 6f 66 20 69 6d 61 67 65 |olution of image| 000003f0 0a 20 72 61 6e 67 65 20 2d 30 2e 31 39 39 32 2c |. range -0.1992,| 00000400 2d 30 2e 31 32 39 35 34 2c 31 2c 31 2e 30 36 37 |-0.12954,1,1.067| 00000410 30 37 20 20 20 20 20 5c 20 73 70 65 63 69 66 79 |07 \ specify| 00000420 20 77 68 69 63 68 20 70 61 72 74 20 6f 66 20 73 | which part of s| 00000430 65 74 20 74 6f 20 64 72 61 77 0a 20 63 76 61 6c |et to draw. cval| 00000440 20 30 2c 31 20 20 20 20 20 20 20 20 20 20 20 20 | 0,1 | 00000450 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000460 20 5c 20 6e 6f 74 20 6f 66 20 75 73 65 20 68 65 | \ not of use he| 00000470 72 65 20 28 6f 6e 6c 79 20 66 6f 72 20 4a 75 6c |re (only for Jul| 00000480 69 61 20 73 65 74 73 29 0a 20 73 6d 6f 6f 74 68 |ia sets). smooth| 00000490 6e 65 73 73 20 32 32 30 20 20 20 20 20 20 20 20 |ness 220 | 000004a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 5c | \| 000004b0 20 73 6d 6f 6f 74 68 6e 65 73 73 20 6f 66 20 73 | smoothness of s| 000004c0 75 72 66 61 63 65 0a 20 64 65 70 74 68 20 31 30 |urface. depth 10| 000004d0 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |0 | 000004e0 20 20 20 20 20 20 20 20 20 20 20 20 20 5c 20 6d | \ m| 000004f0 61 78 69 6d 75 6d 20 69 74 65 72 61 74 69 6f 6e |aximum iteration| 00000500 20 64 65 70 74 68 0a 65 6e 64 69 66 20 20 20 20 | depth.endif | 00000510 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000520 20 20 20 20 20 20 20 20 20 20 20 20 20 5c 20 65 | \ e| 00000530 6e 64 69 66 0a 20 20 20 20 20 20 20 20 20 20 20 |ndif. | 00000540 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | * 00000560 20 20 0a 5c 20 73 65 74 20 70 61 72 61 6d 65 74 | .\ set paramet| 00000570 65 72 73 20 66 6f 72 20 72 61 79 74 72 61 63 69 |ers for raytraci| 00000580 6e 67 20 63 61 6c 63 75 6c 61 74 69 6f 6e 73 0a |ng calculations.| 00000590 0a 6d 6f 75 6e 74 61 69 6e 73 20 20 20 20 20 20 |.mountains | 000005a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000005b0 20 20 20 20 20 20 20 5c 20 72 65 6e 64 65 72 20 | \ render | 000005c0 69 6d 61 67 65 20 69 6e 20 6d 6f 75 6e 74 61 69 |image in mountai| 000005d0 6e 2d 73 74 79 6c 65 0a 6c 69 67 68 74 20 78 64 |n-style.light xd| 000005e0 69 72 65 63 74 69 6f 6e 2c 79 64 69 72 65 63 74 |irection,ydirect| 000005f0 69 6f 6e 2c 2d 32 20 20 20 20 20 20 20 20 5c 20 |ion,-2 \ | 00000600 6c 69 67 68 74 2d 64 69 72 65 63 74 69 6f 6e 20 |light-direction | 00000610 28 66 72 61 6d 65 2d 64 65 70 65 6e 64 61 6e 74 |(frame-dependant| 00000620 29 0a 62 72 69 67 68 74 6e 65 73 73 20 35 32 20 |).brightness 52 | 00000630 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000640 20 20 20 20 20 20 20 20 5c 20 62 72 69 67 68 74 | \ bright| 00000650 6e 65 73 73 20 6f 66 20 69 6d 61 67 65 0a 73 74 |ness of image.st| 00000660 65 65 70 6e 65 73 73 20 31 37 35 20 20 20 20 20 |eepness 175 | 00000670 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000680 20 20 20 20 5c 20 73 74 65 65 70 6e 65 73 73 20 | \ steepness | 00000690 6f 66 20 6d 6f 75 6e 74 61 69 6e 20 73 6c 6f 70 |of mountain slop| 000006a0 65 73 0a 64 69 74 68 65 72 69 6e 67 20 31 32 20 |es.dithering 12 | 000006b0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000006c0 20 20 20 20 20 20 20 20 20 5c 20 72 61 74 68 65 | \ rathe| 000006d0 72 20 62 72 6f 61 64 20 63 6f 6c 6f 72 2d 64 69 |r broad color-di| 000006e0 74 68 65 72 69 6e 67 0a 73 68 61 64 6f 77 73 20 |thering.shadows | 000006f0 6f 66 66 20 20 20 20 20 20 20 20 20 20 20 20 20 |off | 00000700 20 20 20 20 20 20 20 20 20 20 20 20 20 20 5c 20 | \ | 00000710 64 6f 6e 27 74 20 63 61 6c 63 75 6c 61 74 65 20 |don't calculate | 00000720 73 68 61 64 6f 77 73 0a 69 6e 74 65 72 70 6f 6c |shadows.interpol| 00000730 61 74 69 6f 6e 20 6f 66 66 20 20 20 20 20 20 20 |ation off | 00000740 20 20 20 20 20 20 20 20 20 20 20 20 20 20 5c 20 | \ | 00000750 64 6f 6e 27 74 20 75 73 65 20 69 6e 74 65 72 70 |don't use interp| 00000760 6f 6c 61 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 |olation. | 00000770 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000780 20 20 20 20 20 20 20 0a 5c 20 73 65 74 20 70 61 | .\ set pa| 00000790 72 61 6d 65 74 65 72 73 20 66 6f 72 20 73 63 72 |rameters for scr| 000007a0 65 65 6e 20 6f 75 74 70 75 74 20 20 20 20 20 20 |een output | 000007b0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000007c0 20 20 20 20 20 20 20 0a 0a 6f 66 66 73 65 74 20 | ..offset | 000007d0 34 30 2c 33 30 30 20 20 20 20 20 20 20 20 20 20 |40,300 | 000007e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 5c | \| 000007f0 20 70 6f 73 69 74 69 6f 6e 20 69 6d 61 67 65 20 | position image | 00000800 69 6e 20 6d 69 64 64 6c 65 20 6f 66 20 73 63 72 |in middle of scr| 00000810 65 65 6e 0a 61 6e 67 6c 65 20 30 2c 32 35 20 20 |een.angle 0,25 | 00000820 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000830 20 20 20 20 20 20 20 20 20 20 5c 20 6c 6f 6f 6b | \ look| 00000840 20 61 74 20 73 75 72 66 61 63 65 20 66 72 6f 6d | at surface from| 00000850 20 61 62 6f 76 65 0a 69 6e 63 72 65 6d 65 6e 74 | above.increment| 00000860 20 34 2c 34 20 20 20 20 20 20 20 20 20 20 20 20 | 4,4 | 00000870 20 20 20 20 20 20 20 20 20 20 20 20 20 5c 20 70 | \ p| 00000880 69 78 65 6c 20 69 6e 63 72 65 6d 65 6e 74 20 73 |ixel increment s| 00000890 74 65 70 73 0a 73 6c 6f 70 65 20 66 72 6f 6e 74 |teps.slope front| 000008a0 20 34 30 2c 37 20 20 20 20 20 20 20 20 20 20 20 | 40,7 | 000008b0 20 20 20 20 20 20 20 20 20 20 20 5c 20 66 6f 72 | \ for| 000008c0 63 65 20 66 6f 72 65 6d 6f 73 74 20 73 6c 6f 70 |ce foremost slop| 000008d0 65 20 64 6f 77 6e 0a 20 20 20 20 20 20 20 20 20 |e down. | 000008e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000008f0 20 20 20 20 20 20 20 20 20 0a 5c 20 73 65 74 20 | .\ set | 00000900 63 6f 6c 6f 72 73 20 66 6f 72 20 73 75 72 66 61 |colors for surfa| 00000910 63 65 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |ce | 00000920 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000930 20 20 20 20 20 20 20 20 20 0a 0a 63 6f 6c 6f 72 | ..color| 00000940 20 31 35 2c 31 35 2c 31 35 20 20 20 20 20 20 20 | 15,15,15 | 00000950 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000960 20 5c 20 63 6f 6c 6f 72 20 6f 66 20 69 6d 61 67 | \ color of imag| 00000970 65 20 69 73 20 77 68 69 74 65 0a |e is white.| 0000097b