rounded hue value

This commit is contained in:
itsmattkc
2018-12-29 19:56:20 +11:00
parent 9417cab6b8
commit 5d5a27c5a7
+1 -1
View File
@@ -18,7 +18,7 @@
QColor get_curve_color(int index, int length) {
QColor c;
int hue = (double(index)/double(length))*255;
int hue = qRound((double(index)/double(length))*255);
c.setHsv(hue, 255, 255);
return c;
}