Ticket #2 (new enhancement)

Opened 6 years ago

Last modified 6 years ago

Replace Graphics.FieldTrip.Color with Data.Colour.

Reported by: r6 Owned by: somebody
Priority: minor Milestone:
Version: Keywords: color
Cc:

Description

My colour lib provides all the needed functionality and more. Using Data.Colour will allow the colour type to be shared between projects. (To be honest, I think fieldtrip would be the first library to use Data.Colour, since I only released it a few weeks ago.)

After glancing through the OpenGL documentation, I see that you will likely need access to a linear colour space. I have such a function but need to expose it first. I will put this functionally in colour-1.1.0. Once this version is release you will be able to use the library.

Change History

Changed 6 years ago by r6

colour-1.1.0 has now been uploaded to hackage.

You can use Data.Colour.SRGB.Linear to convert to and from OpenGL (linear) colours. Use the regular Data.Colour.SRGB to convert to and from sRGB colours.

Note: See TracTickets for help on using tickets.