Colormap It's Not Composed Of Correct Color
I need to make a colormap with 256 colors from black to red to white and display the red channel in Python but it looks like the only black to red its display and I don't understan
You should add this line in your code :
colormap[i+128,1] = (i+1)/128
You couldn't have white because the green value was always equal to 0.
To go from red to white, you should have the following values of RGB :
[1,0,0]
...
[1,0.5,0.5]
...
[1,1,1]
Post a Comment for "Colormap It's Not Composed Of Correct Color"