tweak spectrum color schema
This commit is contained in:
parent
1e2299b254
commit
9527fcd65f
@ -584,7 +584,7 @@ ExportReport::ExportReport (Session* session, StatusPtr s)
|
|||||||
for (size_t x = 0 ; x < width; ++x) {
|
for (size_t x = 0 ; x < width; ++x) {
|
||||||
for (size_t y = 0 ; y < height; ++y) {
|
for (size_t y = 0 ; y < height; ++y) {
|
||||||
const float pk = p->spectrum[x][y];
|
const float pk = p->spectrum[x][y];
|
||||||
ArdourCanvas::Color c = ArdourCanvas::hsva_to_color (252 - 260 * pk, .9, .3 + pk * .4);
|
ArdourCanvas::Color c = ArdourCanvas::hsva_to_color (252 - 260 * pk, .9, sqrt(pk));
|
||||||
ArdourCanvas::set_source_rgba (cr, c);
|
ArdourCanvas::set_source_rgba (cr, c);
|
||||||
cr->rectangle (m_l + x - .5, y - .5, 1, 1);
|
cr->rectangle (m_l + x - .5, y - .5, 1, 1);
|
||||||
cr->fill ();
|
cr->fill ();
|
||||||
|
Loading…
Reference in New Issue
Block a user