TColorGrid - Palette/Color Range Difference
Posted: Mon Aug 15, 2011 12:58 pm
Hello !
I do not really understand the difference between Palette and ColorRange and how do the work.
First of all:
Why 2 switches UsePalette and UseColorRange?
Can I use both together. I thought one excludes the other.
The formular for color calculation of the palette I found:
The problem is I want is to show positive and negative values in different colors.
( MinValue is full Green
MaxValue is full Red
0 is Red/Green mix 50%)
other values procentual Red/Green mix
)
With the palette formular I cannot do this (not so easy).
For my task the ColorRange works better.
So my idear is to use the Pallette but fill the colors with the ColorRange formular.
But I cannot find the formular for the ColorRange, because I have no source code.
Best regards
Andreas
I do not really understand the difference between Palette and ColorRange and how do the work.
First of all:
Why 2 switches UsePalette and UseColorRange?
Can I use both together. I thought one excludes the other.
The formular for color calculation of the palette I found:
Code: Select all
Procedure TSurfaceSeries.CreateDefaultPalette(NumSteps:Longint);
( MinValue is full Green
MaxValue is full Red
0 is Red/Green mix 50%)
other values procentual Red/Green mix
)
With the palette formular I cannot do this (not so easy).
For my task the ColorRange works better.
So my idear is to use the Pallette but fill the colors with the ColorRange formular.
But I cannot find the formular for the ColorRange, because I have no source code.
Best regards
Andreas