home *** CD-ROM | disk | FTP | other *** search
/ Peanuts NeXT Software Archives / Peanuts-Update.iso / CDROM / Contents / READMEs / Peanuts-3 / Tools / screen / backspace / DigitalClock.1.1.README < prev    next >
Encoding:
Text File  |  1996-11-09  |  2.0 KB  |  40 lines

  1. DigitalClockView
  2. Release 1.1
  3.  
  4. by Matt Pharr
  5. pharr@cs.yale.edu
  6. (NeXTMail ok, nay, quite welcome)
  7.  
  8. Here's another module for BackSpace that bounces a 180 point digital clock
  9. around the screen. Definitely another staple of the screen-saver world, but on
  10. the other hand, it's not one of those totally great demos of all the neat
  11. animation the NeXT is capable of. The only notable part of the implementation
  12. was that it saved the trouble of having to erase the old drawing by making a
  13. border of about 6 pixels around the edges of the bitmap, so that whenever it
  14. draws another bitmap, the new, displaced, one will totally cover up the old
  15. one. I read about that somewhere and only remembered to do it after I wrestled
  16. with flicker on the redraw for longer than I should have. I guess that's one of
  17. the more basic animation techniques, but heck, I thought it was pretty cool.
  18.  
  19. For black and white folks, it keeps the clock at a steady pure white, but for
  20. you bums with color, it randomly moves the RGB values around between 0 and 1.
  21. It doesn't end up looking as cool as it could, doing this, because it only
  22. redraws the bitmap that has the time in it when the time changes- i.e. once
  23. a second, so the color changes aren't nice and smooth... There's probably
  24. a neater thing that can be done with color, but given that I can't try out
  25. any of my ideas, I'm sort of limited in seeing what works and doesn't...
  26.  
  27. To install it, just copy ClockView.o into your BackSpace.app directory, or
  28. into /LocalLibrary/BackSpaceViews.
  29.  
  30. All I ask is that you drop me a letter at pharr@cs.yale.edu if you like it or
  31. have any suggestions.
  32.  
  33. CHANGES SINCE THE FIRST VERSION:
  34.     * Thanks for Sam Streeper for fixing up some incompatibilities with
  35.       the next release of BackSpace (whenever it comes out, anyway...)
  36.     * Rob@Lighthouse.Com was kind enough to forward code to draw the time
  37.       in color, for those blessed enough to have it.
  38.     * Optimizations to the drawing code, some twiddling with parameters
  39.       to make it aesthetically nicer.
  40.