Skip to content

Commit

Permalink
Histogram image: replace opacity with brightness
Browse files Browse the repository at this point in the history
  • Loading branch information
skotopes committed Oct 23, 2021
1 parent 167d3db commit ef08748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playlistitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ QImage * PlayListItem::getHistogrammImage(size_t width, size_t height)
pos_rms_avg /= blocks_per_pixel; neg_rms_avg /= blocks_per_pixel;
r_avg /= blocks_per_pixel; g_avg /= blocks_per_pixel; b_avg /= blocks_per_pixel;
// Peaks
painter.setPen(QColor(r_avg, g_avg, b_avg, 64));
painter.setPen(QColor(r_avg/2, g_avg/2, b_avg/2));
painter.drawLine(
x, hh + pos_peak_avg * hh,
x, hh - neg_peak_avg * hh
Expand Down

0 comments on commit ef08748

Please sign in to comment.