NB. Some useful definitions for color conversions. NB. We assume that color values are represented as a NB. 3 element vector (rgb cmy range from 0 255) NB. http://www.kodak.com/US/en/corp/researchDevelopment/technologyFeatures/gamut.shtml NB. Compares CRT and printer gamut. NB. http://www.aim-dtp.net/index.htm NB. Accurate Image Manipulation site. NB. XWindows CRT gamma correction NB. [jhowland@Ariel jhowland]$ xgamma -gamma 1.0 NB. http://www.aim-dtp.net/aim/technology/crt_gamut/ NB. Shows CRT gamut. NB. http://www.colour.org/tc8-03/survey/s_98mf.html NB. CIE site NB. http://www.cs.cf.ac.uk/Dave/Multimedia/BSC_MM_CALLER.html NB. Dr. David Marshall's MultiMedia course notes (see Colour in Image and Video) NB. http://www.microsoft.com/hwdev/tech/color/sRGB.asp NB. Colorspace Interchange Using sRGB NB. http://www.color.org/sRGB.html NB. Original sRGB color proposal. NB. http://www.color.org/ NB. International Color Consortium NB. http://www.w3.org/TR/css3-color NB. W3.org's use of sRGB color in web documents. NB. http://www.color3d.com/index.htm NB. Windows color matching program NB. http://www.colormatters.com/news_sept01/feature.html NB. Color Matters Newsletter NB. http://www.stereopsis.com/index.html NB. Misc. graphics museings NB. http://www.cs.sfu.ca/undergrad/CourseMaterials/CMPT479/material/notes/Chap3/Chap3.3/Chap3.3.htmlNB. Course notes similar to Dave Marshall's rgb2cmy =: cmy2rgb =: 255&- NB. When using an intensity scale of 0 to 1 rgb2cmy =: cmy2rgb =: 1&- rgb2yiq =: 3 3 $ 0.299 0.587 0.114 0.596 _0.275 _0.321 0.212 _0.528 0.311 mp =: +/ . * m_inv =: %. yiq2rgb =: m_inv rgb2yiq rgb2yuv =: 3 3 $ 0.299 0.587 0.114 _0.169 _0.331 0.5 0.5 _0.419 _0.081 yuv2rgb =: m_inv rgb2yuv