home *** CD-ROM | disk | FTP | other *** search
- Script
- \ This script draws a 3d Julia similar to Plate 27 in "Science Of Fractal Images".
- \ After plotting you will need to set the screen palette (Palette->Set Screen),
- \ assuming you have a colour card. Otherwise save the image and load it into
- \ Translator v7+ which will give a good dithered representation.
-
- \ Program palette. 192 grey shades for the image & background.
- i=0;
- c=21; \ Initial colour
- dc=234/192; \ colour increment
- while i<192 \ set colours 0-191
- pal_red i,c;
- pal_green i,c;
- pal_blue i,c;
- i=i+1;
- c=c+dc;
- endwhile
- \ Colour 192 is for Interior
- pal_red 192,255; pal_green 192,31; pal_blue 192,31;
- \ Colour of background - 63 blue shades
- i=193;
- blue=127; \ initial blue
- redgreen=0; \ initial red & green
- drg=201/63; \ red/green increment
- db=128/63; \ blue increment
- while i<256
- pal_red i,redgreen;
- pal_green i,redgreen;
- pal_blue i,blue;
- i=i+1;
- redgreen=redgreen+drg;
- blue=blue+db;
- endwhile
-
- \ Draw background
- dy=0-y_osunits/128 \ Size of each colour band
- c=193
- y=y_osunits
- while c<256 \ blue sky
- colour 0,c
- plot 4,0,y
- plot 97,x_osunits,dy
- y=y+dy
- c=c+1
- endwhile
- c=64
- while y>0 \ grey ground
- colour 0,c
- plot 4,0,y
- plot 97,x_osunits,dy
- y=y+dy
- c=c-1
- endwhile
-
- \ Draw 3d Julia using CPM
- fractal=Julia_Set
- Data x0=-2,y0=-0.8,width=4.0,height=3.2
- Data Max Iter=64,c Real=-0.18,c Imaginary=0.7
- Data Limit=1000,Slope=200,Max Colour=191
- Select Julia_Set,Interior,Colour,192
- On Julia_Set,Method,Continuous Potential
- 3d_Rotation=0; 3d_Elevation=40;
- 3d_Scalar=0.65; 3d_Linear
- 3d_XY_Plot On
- Off Image,Redraw,Clear
- Draw
-
- \ Clean up
- On Image,Redraw,Clear
- 3d_XY_Plot Off
-