home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4898 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.3 KB

  1. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!howland.reston.ans.net!usc!cs.utexas.edu!torn!nott!emr1!jagrant
  2. From: jagrant@emr1.emr.ca (John Grant)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: how to convert (C,M,Y) colours to (R,G,B)?
  5. Message-ID: <1993Jan12.232630.7796@emr1.emr.ca>
  6. Date: 12 Jan 93 23:26:30 GMT
  7. References: <1993Jan7.211624.27277@emr1.emr.ca> <1993Jan11.221759.7441@sierra.com>
  8. Organization: Energy, Mines, and Resources, Ottawa
  9. Lines: 30
  10.  
  11. In article <1993Jan11.221759.7441@sierra.com> paul@sierra.com (Paul Stratton) writes:
  12. >In article <1993Jan7.211624.27277@emr1.emr.ca> jagrant@emr1.emr.ca (John Grant) writes:
  13. [stuff deleted]
  14. >
  15. >It really is simple.  For example if your CMY is in the range of 0 - 255
  16. >and you have a CMY value of (4, 195, 80) then the RGB value is
  17. >
  18. >    255 - 4
  19. >    255 - 195
  20. >    255 - 80
  21. >
  22. >The only problem is I can't remember which CMY go with which RGB!  I haven't
  23. >done this in a while.
  24.     Yeah, I found it already:
  25.         R=1-C
  26.         G=1-M
  27.         B=1-Y
  28.     assuming that all of r,g,b,c,m,y are [0,1] range.
  29.     or:
  30.         R=255-C
  31.         G=255-M
  32.         B=255-Y
  33.     assuming all are [0,255].  This makes sense since
  34.     (c,m,y)=(0,0,0) is white (i.e. no paint on paper) and white
  35.     is also (r,g,b)=(255,255,255), i.e. all guns turned on,
  36.     summing to white.
  37. -- 
  38. John A. Grant                        jagrant@emr1.emr.ca
  39. Airborne Geophysics
  40. Geological Survey of Canada, Ottawa
  41.