home *** CD-ROM | disk | FTP | other *** search
- Script
- \ This script draws a CPM Julia against a blue background.
- \ 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.
-
- Select Image,Mode,103 \ CC's Mode 103 if available
- if errcnt>0
- Select Image,Mode,21
- endif
-
- \ 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/126 \ 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=255
- while y>0 \ blue 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=-1.4,y0=-1.13,width=2.8,height=2.24
- Data Max Iter=64,Min Iter=10,c Real=-0.18,c Imaginary=0.7
- Data Limit=1000,Slope=1000,Max Colour=191
- Select Julia_Set,Interior,Colour,192
- Select Julia_Set,Method,Continuous Potential
- Off Image,Redraw,Clear
- XY_Guessing Off \ Allow overlay
- Draw
- On Image,Redraw,Clear
- XY_Guessing On
-