Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

Following on a comment by OzanOzan, it seemed like I was using a wrong matrix to convert XYZ to RGB. Since sRGB is the default color space on the web (or is it?), I'm now using the correct matrix followed by a gamma correction function (a = 0.055).

Following on a comment by Ozan, it seemed like I was using a wrong matrix to convert XYZ to RGB. Since sRGB is the default color space on the web (or is it?), I'm now using the correct matrix followed by a gamma correction function (a = 0.055).

Following on a comment by Ozan, it seemed like I was using a wrong matrix to convert XYZ to RGB. Since sRGB is the default color space on the web (or is it?), I'm now using the correct matrix followed by a gamma correction function (a = 0.055).

progress update
Source Link
melhosseiny
  • 10.2k
  • 6
  • 34
  • 48

Update 2

If use a gamma of 0.5 and extend the range of B-V color indexes to be from 4.7 to -0.5, I get red at one extreme but still no violet. Here's the updated fiddle.

enter image description here

Update 2

If use a gamma of 0.5 and extend the range of B-V color indexes to be from 4.7 to -0.5, I get red at one extreme but still no violet. Here's the updated fiddle.

enter image description here

progress update
Source Link
melhosseiny
  • 10.2k
  • 6
  • 34
  • 48

Update

Following on a comment by Ozan, it seemed like I was using a wrong matrix to convert XYZ to RGB. Since sRGB is the default color space on the web (or is it?), I'm now using the correct matrix followed by a gamma correction function (a = 0.055).

enter image description here

enter image description here

I now get this nice color ramp,

enter image description here

but there's still no red/violet at the extremities.

Demo

There's also a fiddle now that you can play with.

Update

Following on a comment by Ozan, it seemed like I was using a wrong matrix to convert XYZ to RGB. Since sRGB is the default color space on the web (or is it?), I'm now using the correct matrix followed by a gamma correction function (a = 0.055).

enter image description here

enter image description here

I now get this nice color ramp,

enter image description here

but there's still no red/violet at the extremities.

Demo

There's also a fiddle now that you can play with.

edited tags
Link
Ozan
  • 4.4k
  • 2
  • 25
  • 35
Loading
Source Link
melhosseiny
  • 10.2k
  • 6
  • 34
  • 48
Loading