home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / paint / a / hackspr / !HackSpr / !Help next >
Encoding:
Text File  |  1992-06-09  |  2.6 KB  |  71 lines

  1. !HackSpr, v1.00 (09-Jun-92)
  2. ===========================
  3.  
  4. Introduction
  5. ------------
  6.  
  7. Have you ever grabbed a part of the screen, printed it out and wondered why
  8. the white has appeared grey? The reason is due to the way colour works on
  9. the Archimedes.
  10.  
  11. Every logical colour is defined in terms of a red, green and blue component,
  12. each component having a range of 0 to 255 (ie 8 bits). Because the current
  13. video hardware is limited to 4096 colours, this actually means that each
  14. component really only has a range of 0 to 15, but this value is shifted left
  15. 4 bits to maximise the range of colours.
  16.  
  17. What this really means is that when new video hardware appears, it will
  18. result in finer changes in colours appearing, rather than newer saturated
  19. colours.
  20.  
  21. To ensure that this IS the case, for each component of colour, the upper
  22. nibble should be copied into the lower nibble. Unfortunately, there are
  23. certain areas of the colour system that ignore this, which results in whites
  24. (red = &FF, green = &FF, blue = &FF) coming out grey (red = &F0, green =
  25. &F0, blue = &F0).
  26.  
  27. Whilst it is entirely possible to change the palette of a sprite using
  28. !Paint to correct this once it has been discovered, it is an arduous task.
  29.  
  30. Things are made worse if you've actually put the sprite into an Impression
  31. document since you then have to save it out as a Draw file, extract the
  32. sprite, correct the palette, then put it back into the Impression document
  33. and adjust the scaling and positioning all over again.
  34.  
  35. Enter !HackSpr ...
  36. ------------------
  37.  
  38. What this natty little application does is scan the sprite file, Draw file,
  39. directory or application that you drop onto its window for anything that
  40. contains a sprite or sprite file. It then checks to see if the sprite(s)
  41. have a 16 colour palette. If they do, the palette is checked and adjusted if
  42. necessary so that the upper nibbles are replicated in the lower nibbles.
  43.  
  44. Whilst this is going on, !HackSpr opens a window and dumps a load of
  45. information in it just to reassure you.
  46.  
  47. Note that ONLY 16 colour sprites are dealt with ... mainly because I'm lazy
  48. :-)
  49.  
  50. Conclusions and usual restrictions
  51. ----------------------------------
  52.  
  53. You may copy/distribute this application as much as you like so long as it
  54. is not copied or distributed for profit, or as part of a commercial product.
  55.  
  56. The only exception is that you CAN use the source if you so wish.
  57.  
  58. Use of the application and source is entirely at your own risk.
  59.  
  60. If you have any bug reports, suggestions or changes to the source code,
  61. write to:
  62.  
  63.  Philip Colmer
  64.  55 St Pauls Drive
  65.  Chatteris
  66.  Cambridgeshire
  67.  PE16 6DG
  68.  
  69.  pcolmer@acorn.co.uk
  70.  
  71.