<br><br>
<div class="gmail_quote">On Wed, Oct 22, 2008 at 1:12 AM, <span dir="ltr">&lt;<a href="mailto:roconnor@theorem.ca">roconnor@theorem.ca</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><a target="_blank" href="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/colour-0.0.0">http://hackage.haskell.org/cgi-bin/hackage-scripts/package/colour-0.0.0</a><br>
<br>I hope for this library to become the standard colour library for Haskell. Most software does not properly blend colours because they fail to gamma-correct the colours before blending. &nbsp;Hopefully by using this library, Haskell programs dealing with colour blending will avoid this problem.<br>
<br>I am making an early release of my colour library to get some feedback. I am especially interested in getting feedback on the interfaces: should functions be renamed, should functions be moved, etc. Should I put black and white colours into Data.Colour? &nbsp;Which is better form making a colour: (sRGB r g b) or (sRGB (r,g,b))?<br>
<br>Bug reports and any patches are also welcome. &nbsp;Be warned, I haven&#39;t extensively tested this library yet.<br></blockquote>
<div>&nbsp;</div>
<div>It would be nice if we could customize the gamma curve. Different devices have different gamma. Some hardware even approximates the gamma curve with piecewise linear functions. This can make a massive difference if you, e.g. degamma the image assuiming a gamma of 2.2 (typical office LCD screen), do some work on it, then convert to a gamma of 2.5 (typical TV - they assume TVs will be in a darker background setting), then the graphics card reads this as sRGB with its own piecewise linear approximation, then does some more work on it, and converts it back. Long story short, if you can&#39;t get all of those steps right the errors can add up quickly and becomes very noticable.</div>

<div>&nbsp;</div>
<div>If it could read photoshop colour profiles that would be even better.<br><br clear="all"><br>-- <br>Sebastian Sylvan<br>+44(0)7857-300802<br>UIN: 44640862<br></div></div>