home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d182 / hr136.lha / HR136 / Readme < prev    next >
Text File  |  1989-02-25  |  13KB  |  270 lines

  1.                    *****  HR136 *****
  2.  
  3.              by Dick Bourne
  4.              307 Silver Valley Rise NW
  5.              Calgary, Alberta, Canada
  6.                  T3B 4B1
  7.            November 23, 1988    
  8.  
  9. SHAREWARE NOTE: The world's cheapest shareware! Send me one dollar if you
  10. find you can make good use of HR136 or the techniques described here. If
  11. you can't afford that, pick out a grungy old no-name disk, and send me an
  12. IFF picture which you created with HR136. If you can't afford either,
  13. please say something nice about me to a fellow Amigan.
  14.  
  15.     Now that the Amiga's major competitors, Mac and IBM, both have
  16. graphics boards available with 256 and more colors in hi-res, it's time for
  17. Commodore or third-party hardware developers to make a move to this level.
  18. Until they do, I've found a technique which allows me to use slightly more
  19. than half of that number of colors in hi-res or even hi-res overscan! It
  20. works well with all paint programs I know of which support hi-res,
  21. including Deluxe Paint II (C), Express Paint 2.0 (C) and up, and Deluxe
  22. Photolab (C).
  23.  
  24. WHAT IS HR136?
  25.  
  26.     Only a hi-res IFF file.....
  27.  
  28.     Only an IFF file, you say? But what a file! It contains in a neat
  29. chart form every possible MIXTURE of the sixteen basic palette colors. The
  30. size of the chart allows you to see clearly the hue, saturation and
  31. luminance of the color mixtures, and to determine which two registers were
  32. used to produce the resulting mix. The mixing pattern within each cell is
  33. that of a checkerboard, and results in a very smooth blend on the hi-res
  34. screen. Results can be even smoother when the signal is converted to NTSC
  35. video, since the results are usually softer than on an RGB screen. However, 
  36. some color mixtures will "vibrate" or produce a moire pattern, especially
  37. if the colors are fully saturated (rich) and opposite each other in the
  38. color spectrum (complementary). Magenta and red are a pretty deadly example.
  39. In cases like these, try adjusting your 16 register colors, reducing
  40. saturation a bit or picking a similar color without the disturbing
  41. "artifacts".
  42.  
  43.     Several variants are provided: HR136.mon has a monochrome (white,
  44. greys and black) palette, HR136.def uses the default palette, and HR136.opt
  45. uses a palette which I have optimized to produce the widest range of colors
  46. possible. The mixing is equivalent to dithering, which some programs can
  47. do automatically. Unfortunately, at this date there is no way to
  48. automatically dither two colors which are not consecutive in the palette.
  49.  
  50. WHY EXACTLY 136 COLORS?
  51.  
  52.     I'm not a mathematician, but I still remember how to figure out
  53. permutations. You might assume that 16 colors combined in all possible ways
  54. might total 16 x 16 or 256, but this is not the case. You have 16 basic
  55. colors available in hardware. Color 0 can combine with colors 1 - 15 for a
  56. total of 15 new colors (if it combined with itself, you'd still just have
  57. color 0!). Color 1 can combine with colors 2 - 15 for a total of 14 new
  58. colors (You have already combined it with color 0). For each successive
  59. color in the palette, there is one less combination to be made. The total,
  60. then, is a permutation: 
  61.  
  62. 16+15+14+13+12+11+10+9+8+7+6+5+4+3+2+1+0 = 136! This equates to the 16 pure
  63. register colors, plus 120 more.
  64.  
  65.  
  66. HOW DO I USE HR136?
  67.  
  68. A. Deluxe Paint II:
  69.  
  70. 1. Start the program in the hi-res mode.
  71.  
  72. 2. Load HR136.opt (or one of the other two HR136 IFF files).
  73.  
  74. 3. Press "j" to swap to the spare screen. Here you may draw a picture or
  75. load a pre-drawn one. If you choose the latter route, your palette will be
  76. reset to that of the loaded picture, and all of your color mixtures will
  77. change, too. However, you will still likely find any tint that you need.
  78.  
  79. 4. Once you have basically roughed out your drawing (making sure areas to be
  80. filled with color are totally filled and enclosed) you may now begin to 
  81. refill areas with ANY of the 136 colors that HR136 can offer.
  82.  
  83. 5. Press "j" to return to the HR136 screen.
  84.  
  85. 6. Select the Magnify tool, and click the rectangle pointer on the mixture
  86. you want to "paint"with. Now that the color area is enlarged, you will
  87. clearly see the checkerboard pattern.
  88.  
  89. 7. Select the Brush tool, and grab an area of color EXACTLY 2 dots by 2
  90. dots within the magnified area. 
  91.  
  92. 8. Click with your RIGHT mouse button on the Fill tool. In the menu box
  93. which appears, select "Pattern" and "From Brush" options. You will see the
  94. color mixture fill the little window to the right of the box gadgets.
  95.  
  96. 9. Click OK in the menu box.
  97.  
  98. 10. Click on the Magnify tool again to close the magnified window.
  99.  
  100. 11. Jump "j" to other screen.
  101.  
  102. 12. Select Fill tool with the left mouse button.
  103.  
  104. 13. Click with your pointer within the area to fill. If the effect is not
  105. what you wish, press "u" to undo it. If color leaks out of the desired
  106. area, press the spacebar to abort the process.
  107.  
  108.     Now return to step 5, and repeat the steps for a different color.
  109. After a while it will become second nature. I found it took me only 10 -15
  110. minutes to color - in a picture after the basic shapes were in place. I find
  111. ANY of the 136 colors work well for computer-based displays, although
  112. printed results may vary a lot. Video output needs to be checked carefully
  113. and adjusted to avoid the problems alluded to in the introduction. I find
  114. bright green mixed with red or magenta to be the worst combination when
  115. used in conjunction with broadcast-quality equipment.
  116.  
  117. B. Express Paint:  (I've based my instructions on V2.0, but other
  118.    versions will be similar.)
  119.  
  120. 1. You load the program, select 640 x 400 for screen and page size, and
  121. load one of the three HR136 IFF files. 
  122.  
  123. 2. Now you click on the scissors icon, and "snip" just within the cell
  124. boundary of the colors you want, until you have made "cuts" of all the
  125. colors you will need. The color cells have been constructed so that when
  126. you use one to fill shapes with, there will be no breaks in the fill pattern.
  127.  
  128. 3. A variation on this theme is to save each color cell to disk as
  129. a cut that you can reload. I have done this for all the mixtures that
  130. include color 0, and saved them in a drawer labelled "Cuts". Notice that
  131. the name of each cut identifies the numbers of the two colors in the
  132. mixture. Express Paint even allows you to create a file of loading
  133. instructions that can preload cuts of your choice, but 120 cuts will take a
  134. long time, and will eat up valuable memory. Be selective!
  135.  
  136. 4. At this point, click on the Eraser tool and then the option All.
  137.  
  138. 5. Now you may load a pre-drawn picture, or draw your own. Use one of the
  139. sixteen register colors to rough out the picture and fill all solid areas. Be
  140. sure there are no places where color can "leak" beyond the desired
  141. boundaries when you refill with color mixtures.
  142.  
  143. 6. Select the "Fill" icon at the bottom of the screen.
  144.  
  145. 7. In the right-screen tool area, select the Normal Fill icon (same design
  146. as 6, above.) Now use the Up and Down arrows to scroll through your color 
  147. cuts until you see a shade you like. Or you may prefer to load a cut from 
  148. disk. With a little practise, you'll be able to visualize the resultant mix 
  149. of any two register colors.
  150.  
  151. 8. Click with the left mouse button to the upper left of the area to be
  152. filled, and drag the rubber-band box to the lower right of the area. 
  153. Release the button. You have created a containment area, so that any fill
  154. that leaks out of its boundaries cannot destroy your whole picture. 
  155.  
  156. 9. Click within the area to be filled to finish the job. NOTE: You can not
  157. "Undo" on versions lower than V3.0. You can only contain the damage. Also
  158. you can not re-fill the area with another solid or pattern color unless you
  159. erase the existing pattern - so be careful the first time!
  160.  
  161. Repeat from 7. to use other HR136 colors.
  162.  
  163. Note: Version 3.0 of Express Paint will allow you to keep HR136 on an
  164. alternate screen, and make cuts of it as you wish. It also offers unlimited
  165. "undos" if you make mistakes.
  166.  
  167. C. Deluxe Photolab "Paint" Program:
  168.  
  169.    This program has some nice features, but absolutely refuses to allow me
  170. to open two hi-res screens, even with 3 megs of memory! Therefore, you will
  171. have to keep a library of cuts similar to those explained in B. above. 
  172.  
  173. 1. Start the Paint program.
  174.  
  175. 2. Pre-draw a new picture, filling in all solid areas with colors from the
  176. standard palette. Be sure that you close any open space or "channel"
  177. through which color could leak to an unwanted area during filling.
  178.  
  179. 3. When you are ready, decide what tints you wish to use which are not in
  180. the palette, and what color mixtures would likely produce them. For
  181. example, if you need a very light pastel yellow, it would probably be
  182. produced by mixing pure yellow and white. 
  183.  
  184. 4. Let's assume that color 1 is white and color 5 is yellow. Select Brush
  185. Load from the top-of-screen menu and go into your Cuts (or "Brushes") menu.
  186. If you have created 120 small cuts and labelled them as I indicated in B.
  187. above, you'll select and load "1-5.cut". The brush that appears will be a
  188. pastel yellow.
  189.  
  190. 5. Click with the right mouse button on the Fill Icon in the Toolbox area -
  191. (it's the one that looks like a paint bucket pouring).
  192.  
  193. 6. A requester box will open. Notice gadgets for "Solid Color" and "Brush
  194. Pattern". Click with your left mouse button in the second box.
  195.  
  196. 7. Click with the left mouse button in the desired area to fill it with the
  197. color mixture. If a mistake occurs, press "u" to undo or the spacebar to
  198. abort the process.
  199.  
  200. Repeat from 3. for other HR136 colors you wish to use.
  201.  
  202. RELATIVE PROS AND CONS OF VARIOUS TECHNIQUES AND PROGRAMS:
  203.  
  204. 1. The Deluxe Paint technique with the spare screen allows fast comparison
  205. and selection of colors, but only one brush (cut) can be kept in memory. 
  206. You can save and load brushes from Ram: to avoid the need to zoom and 
  207. recapture them every time a certain color is needed, but that also takes
  208. time. Deluxe Paint II is forgiving of errors, with an instant undo. 
  209.  
  210. 2. The Express Paint method allows rapid scrolling through the "cuts" colors
  211. by use of the up/down arrows. This may become tedious, though, if you load a
  212. large number of cuts! You also can get lost, and have no idea what register
  213. combination you are viewing. A nice feature for multiple cuts would be to
  214. have the file name visible in the title bar. Express Paint V2.0 also lacks
  215. a true undo, but it is included in V3.0.
  216.  
  217. 3. Deluxe Photolab's technique is the least friendly - there is no spare
  218. screen in hi-res (though the program can support multiple screens when one
  219. is of lower resolution) so you cannot keep HR136 handy for color selection. 
  220. Worse, brushes (cuts) must be loaded one at a time to be viewed or used. 
  221. However, the program will give you a second chance if you make a mistake,
  222. following the Deluxe Paint approach of "u" to undo, and spacebar to abort a
  223. fill. 
  224.  
  225. GENERAL COMMENTS:
  226.  
  227. 1. HR136 is not quite as good as a 256-color (8-bit) hi-res mode. Just
  228. think of the number of colors a board like that could create using the
  229. dot-mixing technique I've described! 256 + 255 + 254 .... + 2 + 1! The
  230. scary thing is that third-party manufacturers for Mac II and IBM PS/2 are
  231. pushing beyond 8-bit to 24- and 32-bit boards capable of millions of
  232. on-screen colors. The hopeful aspect is that Amiga may still match or beat
  233. their capabilities if Commodore and third party hardware manufacturers work
  234. together effectively.
  235.  
  236. 2. HR136 could become redundant if existing and new paint programs BUILD IN
  237. an option which allows the user to step through all the two-color dithered
  238. patterns, then draw or fill freely with them! Another elegant concept 
  239. would be the ability to fill over one pattern with another (a 
  240. "checkerboard detector" fill routine?). The hardware has the speed to do
  241. it, developers! 
  242.   
  243. 3. You can't fill single-pixel lines with a pattern - but if you are
  244. working in video, you should fatten up such lines anyway, so they don't
  245. flicker or virtually disappear! Good video demands large, bold strokes,
  246. shapes and fonts.
  247.  
  248. 4. The dot-mixing technique does not produce solid-appearing shades in
  249. lower-res, even when you record pictures to video; the patterns can still 
  250. be attractive, however.
  251.  
  252. 5. Some medium-res color mixtures may work; use your own discretion.
  253.  
  254. 6. Your IFF files will consume more disk space when HR136 colors are 
  255. used, if you save pictures in compacted form. (All three of the above paint
  256. programs normally do). The reason for this is that you achieve greater
  257. compaction when you have large solid areas, and less when you change colors
  258. frequently within the same areas. Therefore, you should try to adjust the 16
  259. register colors to the optimum settings for your LARGE areas, and use
  260. color mixtures for the SMALLER areas whenever possible.
  261.  
  262. 7. Anything which enlarges, shrinks or distorts an object in any way will
  263. destroy the color mixing pattern. Do all such manipulation before filling
  264. with a color mixture!
  265.  
  266.             ENJOY!
  267.  
  268.  
  269.  
  270.