Home » Archimedes archive » Micro User » MU 1991-09.adf » PD-Stuff » FracTrace/FTS-Files/AnimaFTS

FracTrace/FTS-Files/AnimaFTS

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/AnimaFTS
Read OK:
File size: 049E bytes
Load address: 0000
Exec address: 0000
File contents
title anima
                                              
var fromxmin, fromxmax, fromymin, fromymax
var toxmin, toxmax, toymin, toymax
var xminstep, xmaxstep, yminstep, ymaxstep
var xres, yres, steepstep, stepsize
var maxframe, i
            
maxframe = 12

frames maxframe
scope 3,maxframe
                
xres = 100; yres = 100
fromxmin = -2.2; fromxmax = 1
fromymin = -1.8; fromymax = 1.5
toxmin = -0.1992; toxmax = -0.12954
toymin = 1; toymax = 1.06707
stepsize = 20
                                 
if frame>1
 i=1
 repeat
  xminstep=ABS(fromxmin-toxmin)/xres
  xmaxstep=ABS(fromxmax-toxmax)/xres
  yminstep=ABS(fromymin-toymin)/yres
  ymaxstep=ABS(fromymax-toymax)/yres
  fromxmin=fromxmin+stepsize*xminstep
  fromxmax=fromxmax-stepsize*xmaxstep
  fromymin=fromymin+stepsize*yminstep
  fromymax=fromymax-stepsize*ymaxstep
  i=i+1
 until i=frame
endif

steepstep=(175-10)/frames

mandelbrot
resolution xres,yres
range fromxmin,fromxmax,fromymin,fromymax
smoothness 120
depth 127

mountains
light 0.5,1,-2
brightness 52
steepness (10+(frame-1)*steepstep)/9
dithering 18
shadows off
interpolation off

offset 40,270
angle 0,30
increment 4,4
slope front 0,0

color 15,15,15

00000000  0a 74 69 74 6c 65 20 61  6e 69 6d 61 0a 20 20 20  |.title anima.   |
00000010  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000030  20 20 20 20 20 20 20 20  20 20 20 0a 76 61 72 20  |           .var |
00000040  66 72 6f 6d 78 6d 69 6e  2c 20 66 72 6f 6d 78 6d  |fromxmin, fromxm|
00000050  61 78 2c 20 66 72 6f 6d  79 6d 69 6e 2c 20 66 72  |ax, fromymin, fr|
00000060  6f 6d 79 6d 61 78 0a 76  61 72 20 74 6f 78 6d 69  |omymax.var toxmi|
00000070  6e 2c 20 74 6f 78 6d 61  78 2c 20 74 6f 79 6d 69  |n, toxmax, toymi|
00000080  6e 2c 20 74 6f 79 6d 61  78 0a 76 61 72 20 78 6d  |n, toymax.var xm|
00000090  69 6e 73 74 65 70 2c 20  78 6d 61 78 73 74 65 70  |instep, xmaxstep|
000000a0  2c 20 79 6d 69 6e 73 74  65 70 2c 20 79 6d 61 78  |, yminstep, ymax|
000000b0  73 74 65 70 0a 76 61 72  20 78 72 65 73 2c 20 79  |step.var xres, y|
000000c0  72 65 73 2c 20 73 74 65  65 70 73 74 65 70 2c 20  |res, steepstep, |
000000d0  73 74 65 70 73 69 7a 65  0a 76 61 72 20 6d 61 78  |stepsize.var max|
000000e0  66 72 61 6d 65 2c 20 69  0a 20 20 20 20 20 20 20  |frame, i.       |
000000f0  20 20 20 20 20 0a 6d 61  78 66 72 61 6d 65 20 3d  |     .maxframe =|
00000100  20 31 32 0a 0a 66 72 61  6d 65 73 20 6d 61 78 66  | 12..frames maxf|
00000110  72 61 6d 65 0a 73 63 6f  70 65 20 33 2c 6d 61 78  |rame.scope 3,max|
00000120  66 72 61 6d 65 0a 20 20  20 20 20 20 20 20 20 20  |frame.          |
00000130  20 20 20 20 20 20 0a 78  72 65 73 20 3d 20 31 30  |      .xres = 10|
00000140  30 3b 20 79 72 65 73 20  3d 20 31 30 30 0a 66 72  |0; yres = 100.fr|
00000150  6f 6d 78 6d 69 6e 20 3d  20 2d 32 2e 32 3b 20 66  |omxmin = -2.2; f|
00000160  72 6f 6d 78 6d 61 78 20  3d 20 31 0a 66 72 6f 6d  |romxmax = 1.from|
00000170  79 6d 69 6e 20 3d 20 2d  31 2e 38 3b 20 66 72 6f  |ymin = -1.8; fro|
00000180  6d 79 6d 61 78 20 3d 20  31 2e 35 0a 74 6f 78 6d  |mymax = 1.5.toxm|
00000190  69 6e 20 3d 20 2d 30 2e  31 39 39 32 3b 20 74 6f  |in = -0.1992; to|
000001a0  78 6d 61 78 20 3d 20 2d  30 2e 31 32 39 35 34 0a  |xmax = -0.12954.|
000001b0  74 6f 79 6d 69 6e 20 3d  20 31 3b 20 74 6f 79 6d  |toymin = 1; toym|
000001c0  61 78 20 3d 20 31 2e 30  36 37 30 37 0a 73 74 65  |ax = 1.06707.ste|
000001d0  70 73 69 7a 65 20 3d 20  32 30 0a 20 20 20 20 20  |psize = 20.     |
000001e0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000001f0  20 20 20 20 20 20 20 20  20 20 20 20 0a 69 66 20  |            .if |
00000200  66 72 61 6d 65 3e 31 0a  20 69 3d 31 0a 20 72 65  |frame>1. i=1. re|
00000210  70 65 61 74 0a 20 20 78  6d 69 6e 73 74 65 70 3d  |peat.  xminstep=|
00000220  41 42 53 28 66 72 6f 6d  78 6d 69 6e 2d 74 6f 78  |ABS(fromxmin-tox|
00000230  6d 69 6e 29 2f 78 72 65  73 0a 20 20 78 6d 61 78  |min)/xres.  xmax|
00000240  73 74 65 70 3d 41 42 53  28 66 72 6f 6d 78 6d 61  |step=ABS(fromxma|
00000250  78 2d 74 6f 78 6d 61 78  29 2f 78 72 65 73 0a 20  |x-toxmax)/xres. |
00000260  20 79 6d 69 6e 73 74 65  70 3d 41 42 53 28 66 72  | yminstep=ABS(fr|
00000270  6f 6d 79 6d 69 6e 2d 74  6f 79 6d 69 6e 29 2f 79  |omymin-toymin)/y|
00000280  72 65 73 0a 20 20 79 6d  61 78 73 74 65 70 3d 41  |res.  ymaxstep=A|
00000290  42 53 28 66 72 6f 6d 79  6d 61 78 2d 74 6f 79 6d  |BS(fromymax-toym|
000002a0  61 78 29 2f 79 72 65 73  0a 20 20 66 72 6f 6d 78  |ax)/yres.  fromx|
000002b0  6d 69 6e 3d 66 72 6f 6d  78 6d 69 6e 2b 73 74 65  |min=fromxmin+ste|
000002c0  70 73 69 7a 65 2a 78 6d  69 6e 73 74 65 70 0a 20  |psize*xminstep. |
000002d0  20 66 72 6f 6d 78 6d 61  78 3d 66 72 6f 6d 78 6d  | fromxmax=fromxm|
000002e0  61 78 2d 73 74 65 70 73  69 7a 65 2a 78 6d 61 78  |ax-stepsize*xmax|
000002f0  73 74 65 70 0a 20 20 66  72 6f 6d 79 6d 69 6e 3d  |step.  fromymin=|
00000300  66 72 6f 6d 79 6d 69 6e  2b 73 74 65 70 73 69 7a  |fromymin+stepsiz|
00000310  65 2a 79 6d 69 6e 73 74  65 70 0a 20 20 66 72 6f  |e*yminstep.  fro|
00000320  6d 79 6d 61 78 3d 66 72  6f 6d 79 6d 61 78 2d 73  |mymax=fromymax-s|
00000330  74 65 70 73 69 7a 65 2a  79 6d 61 78 73 74 65 70  |tepsize*ymaxstep|
00000340  0a 20 20 69 3d 69 2b 31  0a 20 75 6e 74 69 6c 20  |.  i=i+1. until |
00000350  69 3d 66 72 61 6d 65 0a  65 6e 64 69 66 0a 0a 73  |i=frame.endif..s|
00000360  74 65 65 70 73 74 65 70  3d 28 31 37 35 2d 31 30  |teepstep=(175-10|
00000370  29 2f 66 72 61 6d 65 73  0a 0a 6d 61 6e 64 65 6c  |)/frames..mandel|
00000380  62 72 6f 74 0a 72 65 73  6f 6c 75 74 69 6f 6e 20  |brot.resolution |
00000390  78 72 65 73 2c 79 72 65  73 0a 72 61 6e 67 65 20  |xres,yres.range |
000003a0  66 72 6f 6d 78 6d 69 6e  2c 66 72 6f 6d 78 6d 61  |fromxmin,fromxma|
000003b0  78 2c 66 72 6f 6d 79 6d  69 6e 2c 66 72 6f 6d 79  |x,fromymin,fromy|
000003c0  6d 61 78 0a 73 6d 6f 6f  74 68 6e 65 73 73 20 31  |max.smoothness 1|
000003d0  32 30 0a 64 65 70 74 68  20 31 32 37 0a 0a 6d 6f  |20.depth 127..mo|
000003e0  75 6e 74 61 69 6e 73 0a  6c 69 67 68 74 20 30 2e  |untains.light 0.|
000003f0  35 2c 31 2c 2d 32 0a 62  72 69 67 68 74 6e 65 73  |5,1,-2.brightnes|
00000400  73 20 35 32 0a 73 74 65  65 70 6e 65 73 73 20 28  |s 52.steepness (|
00000410  31 30 2b 28 66 72 61 6d  65 2d 31 29 2a 73 74 65  |10+(frame-1)*ste|
00000420  65 70 73 74 65 70 29 2f  39 0a 64 69 74 68 65 72  |epstep)/9.dither|
00000430  69 6e 67 20 31 38 0a 73  68 61 64 6f 77 73 20 6f  |ing 18.shadows o|
00000440  66 66 0a 69 6e 74 65 72  70 6f 6c 61 74 69 6f 6e  |ff.interpolation|
00000450  20 6f 66 66 0a 0a 6f 66  66 73 65 74 20 34 30 2c  | off..offset 40,|
00000460  32 37 30 0a 61 6e 67 6c  65 20 30 2c 33 30 0a 69  |270.angle 0,30.i|
00000470  6e 63 72 65 6d 65 6e 74  20 34 2c 34 0a 73 6c 6f  |ncrement 4,4.slo|
00000480  70 65 20 66 72 6f 6e 74  20 30 2c 30 0a 0a 63 6f  |pe front 0,0..co|
00000490  6c 6f 72 20 31 35 2c 31  35 2c 31 35 0a 0a        |lor 15,15,15..|
0000049e