- start: 
- c1 = 50: c2 = 10: c3 = 50 
-     IF-  clr  > 298 THEN-  c3  =-  c1: c2  =-  c1 
 
-   
-         s = s + st 
-         x  = COS(- s  * 3.141592 / 180) *-  d 
-         y  = SIN(- s  * 3.151492 / 180) *-  d 
-     p = p + .02 
-     _TITLE "Percent Full: " +-  p$  + "   Press S to save as .bmp file anytime or Space Bar for new one."
 
- more: 
- _TITLE "Press Space Bar to make a new one or Press S to save as .bmp file." 
- again: 
- '--------------------------------------------------------------------------- 
- saving: 
- 'Saving 
- 'This section first saves your picture as temp.bmp and then 
- 'asks you a name for your picture and then renames temp.bmp to your name. 
- 'Now we call up the SUB to save the image to BMP. 
- SaveImage 0, "temp.bmp" 
- PRINT "                     Your bmp file will be saved in the" 
- PRINT "                     same directory as this program is." 
- PRINT "                     It can be used with almost any" 
- PRINT "                     other graphics program or website." 
- PRINT "                     It is saved using:" 
- PRINT "                     width: 800  height: 600 pixels." 
- PRINT "                     Type a name to save your picture" 
- PRINT "                     and press the Enter key. Do not" 
- PRINT "                     add .bmp at the end, the program" 
- PRINT "                     will do it automatically." 
- PRINT "                     Also do not add spaces to your name." 
- PRINT "                     If you accidentally add a space, your" 
- PRINT "                     file will be called temp.bmp. You must" 
- PRINT "                     rename that in Windows or it will be lost" 
- PRINT "                     next time you save a galaxy picture." 
- PRINT "                     Also do not use the name temp" 
- PRINT "                     because the program uses that name" 
- PRINT "                     and it would be erased the next time" 
- PRINT "                     you save a picture." 
- PRINT "                     Quit and Enter key ends program." 
-   
-   
- nm$ = nm$ + ".bmp" 
- 'Checking to see if the file already exists on your computer. 
-     PRINT "                File Already Exists" 
-     PRINT "                Saving will delete your old" 
-     PRINT "                Would you like to still do it?" 
-     PRINT "               Esc goes to start screen." 
-     llloop: 
- saving2: 
- nm$ = "" 
-   
-   
- 'This section saves the .bmp picture file. 
-     IF-  bytesperpixel&  = 1 THEN-  bpp&  = 8 ELSE-  bpp&  = 24
 
-     b$  = "BM????QB64????" + MKL$(40) + MKL$(- x& ) + MKL$(- y& ) + MKI$(1) + MKI$(- bpp& ) + MKL$(0) + "????" + STRING$(16, 0) 'partial BMP header info(???? to be filled later)
-         FOR-  c&  = 0 TO 255 ' read BGR color settings from JPG image + 1 byte spacer(CHR$(0))
 
-     MID$(- b$ , 11, 4) = MKL$(LEN(- b$ )) ' image pixel data offset(BMP header)
 
-     FOR-  py&  =-  y&  - 1 TO 0 STEP -1 ' read image pixel color data
 
-         r$ = "" 
-             c&  = POINT(- px& ,-  py& ) 'POINT 32 bit values are large LONG values
-         d$ = d$ + r$ + padder$ 
-     MID$(- b$ , 35, 4) = MKL$(LEN(- d$ )) ' image size(BMP header)
 
-     b$ = b$ + d$ ' total file data bytes to create file 
-     MID$(- b$ , 3, 4) = MKL$(LEN(- b$ )) ' size of data file(BMP header)
 
-