@@ -15,8 +15,12 @@
17function threeColorByIndex(index, total, colors) {
17function threeColorByIndex(index, total, colors) {
18− var red, green, blue
18+ var red, green, blue;
19− var p = index / total
22+ p = index / total;
21 if (p < 0.5) {
25 if (p < 0.5) {
22 red = (colors.main.r * p * 2.0) + colors.start.r * (0.5 - p) * 2.0;
26 red = (colors.main.r * p * 2.0) + colors.start.r * (0.5 - p) * 2.0;
@@ -28,5 +32,5 @@ function threeColorByIndex(index, total, colors) {
28 blue = colors.end.b * (p - 0.5) * 2.0 + colors.main.b * (1.0 - p) * 2.0;
32 blue = colors.end.b * (p - 0.5) * 2.0 + colors.main.b * (1.0 - p) * 2.0;
31− return Qt.rgba(red, green, blue, 1)
35+ return Qt.rgba(red, green, blue, 1);