home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 128 28 / q28.d81 / t.cosmo < prev    next >
Text File  |  2022-08-28  |  6KB  |  123 lines

  1.  
  2.  
  3.                                  C O S M O
  4.  
  5.                        Program and Text by Tim George
  6.  
  7.     I like to call COSMO a Galaxy Generator, but my friend Denny (ever the
  8. minimalist) told me; "it looks like a doily maker".  How about Crystal
  9. Widget machine?  Like most things, COSMO is whatever you want it to be.
  10.  
  11.     COSMO is one of what I call math-graphics type software: programs that
  12. run for many iterations through a loop of mathematic algorithms and plot
  13. the results graphically to the screen.  Fractal and landscape software are
  14. the two most common types, but there are many different kinds, even some
  15. that plot their results using audio.
  16.  
  17.     The math in COSMO that does all the work is ridiculously simple but the
  18. results are amazing.  Very similar in look to Affine Transforms on LS #93
  19. to watch forming.  There is a surprising amount of variety between the
  20. different patterns it can come up with.  I found I got the best results by
  21. turning my monitor's contrast all the way up and the brightness down just
  22. below halfway.
  23.  
  24.     Sometimes it will make a small pattern that stays in the middle of the
  25. screen.  Let these run for a while because when they finally expand they
  26. are usually the most beautiful.  Of course, some never do.  Likewise,
  27. although rare, sometimes a pattern will be so large the rows of dots shoot
  28. off the screen and only draw around the edges.  These can be the most
  29. interesting if they come back (usually within 30 seconds).  Again, though,
  30. some go exponential and never return.
  31.  
  32.     There isn't too much user control I could give in the loop.  X/Y
  33. scaling and color count both have a very narrow margin of settings before
  34. the results turn useless.  Even XOR has to be left on or the 8x2 color
  35. cells become too obvious in the center of the screen and look ugly.  The
  36. following controls are available while COSMO is running.
  37.  
  38.     R  will redraw the same pattern, with the same pallette and reset the
  39. timer if it's on.
  40.  
  41.     T  will activate the timer.  The pattern will pause, the screen will
  42. turn blue and you are in timer mode.  Press 1-6 for the number of minutes a
  43. pattern will draw before a new one begins.  Any other key turns off the
  44. timer.  Setting the timer doesn't zero it out, so if you turn it on and
  45. that amount of time has already passed, a new pattern will begin.
  46.  
  47.     X  will toggle the limit flag.  The pattern will pause and the screen
  48. will turn blue.  Press X again to set the flag.  Any other key will clear
  49. it.  When the flag is set, as soon as the X plot reaches 1200 in either
  50. direction (well off the screen) a new pattern will begin.  This has the
  51. advantage of automatically drawing the next one, but unlike the timer, will
  52. allow every pattern to finish filling the screen no matter how fast or slow
  53. it does it.  X and T are off when COSMO first starts and if neither are set
  54. and no key is pressed the program will just keep looping until finally
  55. (weeks?) the math would cause an overflow error.
  56.  
  57.     P  will turn the screen dark gray and pause the pattern.  Any key will
  58. continue.  Pause does not stop the timer from counting but it will hold the
  59. pattern if time runs out.
  60.  
  61.     ESC  will quit and return to LOADSTAR on any drive or exit to BASIC.
  62.  
  63.     Any other key will start the next pattern.  When a new pattern begins,
  64. two 'seeds' are generated randomly.  The numbers are (all approximate):
  65.  
  66.   S1: any one of 100,000 numbers between 1 and 1.001
  67.  
  68.   S2: any one of 100,000,000 numbers between -1.99 and -0.000008
  69.  
  70.     The order of the colors in the pallette are also chosen at random.  All
  71. colors except black and dark gray are always used.  Then the timer is
  72. restarted.
  73.  
  74.  
  75.  COSMO 16K
  76.  ---------
  77.  
  78.     As written, COSMO requires 64K of VDC ram.  Software Support
  79. International (1-800-356-1179) still carries the 64K upgrade kit if you
  80. have only 16K.  If you have no interest in or need for it you can run
  81. 'cosmo 16k'.  It's a stripped down but very similar monochrome version.  It
  82. has no color step or pallette and XOR is replaced by OR (there are no color
  83. cells to show up).
  84.  
  85.     All the keyboard controls above are the same with a new one, C.  Each
  86. time a new pattern begins a new single color, except black or dark gray, is
  87. chosen at random for the whole screen.  Pressing C will cycle through the
  88. colors and back again, but every dot on the whole screen will turn the same
  89. color.  Hold down C for 'psychotic episode' mode.
  90.  
  91.     Even if you have 64K check out COSMO 16K.  It's not as spectacular, but
  92. it's still interesting since the single color gives a very different 'feel'
  93. to the look of the patterns.
  94.  
  95.     I love writing these types of programs, and I hope you like it.  If
  96. you're just kicking around the house on a day off, set up your monitor in a
  97. corner of the living room, put on your favorite Classical (or Zep), and
  98. diverge.
  99.  
  100.  TG
  101.  
  102. FENDER'S POSTMUMBLE: I like this program even more than Tim does.  I've had
  103. to ban myself from running it here at the Tower because I can't turn it off
  104. and get any work done.  I'll bet a lot of you out there get caught up in
  105. the incredible beauty of its screens, too.
  106.  
  107. What IS the fascination of this kind of art?  My theory is that there are
  108. two kinds of people in the world: those that are more comfortable with
  109. order, and those that are more comfortable with chaos.  When it comes to
  110. art, I guess I'm one of those "orderly" guys.  I can walk through an art
  111. gallery filled with pictures created by talented humans and get a mild
  112. thrill, but when I see a picture painted by a dinky little formula, I'm
  113. hooked -- especially when I can see the formula in action.
  114.  
  115. Both of the BASIC source codes are on the disk so if you want to experiment
  116. by changing some of the parameters, feel free.  For best results, after
  117. changing the code and finding something you think is interesting, compile
  118. the program for speed.  We used Abacus' BASIC 128 Compiler but any compiler
  119. should work.
  120.  
  121.                        \\\\\ RETURN - Menu \\\\\
  122.  
  123.