home *** CD-ROM | disk | FTP | other *** search
-
- bez - draws bezier curves (also a manual screen saver)
- ------------------------------------------------------
-
- This is a simple little screen saver I use. I generally invoke it
- from a shell before I leave my system. Type any key to quit. You
- should be able to invoke it from the desktop. Just rename it to a
- .prg file. Yes, I know, you can't have your screen saved while in an
- editor, but if your editor supports shell commands, you can. I prefer
- to invoke it rather than have something watch the state of the
- system. I feel safer if I know what is going on. It is totally safe
- with respect to hardware as it does not muck around with video
- signals as some all-black screen savers do. I think it also is more
- interesting than fireworks!
-
- This is based on a code posted a long time ago. I cleaned it up and
- made it standalone (i.e. callable from anywhere). All you need is
- rand and srand and of course bios/xbios. It writes to the screen at
- Physbase directly and uses no line A, vdi, etc. It is therefore much
- faster than other line drawing routines. I think the original author
- posted it to show how fast some compiler was. Unfortunately, I don't
- remember who that was. Note that this "draws" the curve directly to
- screen memory, so it won't work on anything but "standard" monitors.
- It should work in all ST resolution modes (tested hi, med). I think
- the basic algorithm can be adopted for other uses. It compiles under
- GNU C (and probably Alcyon or Sozobon, tho not tested). Assumes int
- is 16-bits so use -mshort. No stdio.
-
- Enjoy...
-
- -Bill Rosenkranz
- rosenkra@convex.com
-