1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 07:43:54 +02:00

Martyn's suggested rotation of rgb values for spectral selection

This commit is contained in:
Paul Licameli
2015-09-01 02:30:32 -04:00
parent dd95f735c6
commit bae6a95e15

View File

@@ -622,8 +622,11 @@ void AColor::PreComputeGradient() {
case ColorGradientTimeAndFrequencySelected: case ColorGradientTimeAndFrequencySelected:
if( !grayscale ) if( !grayscale )
{ {
// flip the blue, makes spectrogram more yellow. float temp;
b = 1.0f - 0.75f * b; temp = r;
r = g;
g = b;
b = temp;
break; break;
} }
// else fall through to SAME grayscale colour as normal selection. // else fall through to SAME grayscale colour as normal selection.