Kaynağa Gözat

fix diff colors

David 10 yıl önce
ebeveyn
işleme
a3ae463444
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      main.qml

+ 2 - 2
main.qml

@@ -199,12 +199,12 @@ ApplicationWindow {
                         ctx.lineWidth = 3
                         ctx.strokeStyle = "#000000"
 
-                        ctx.beginPath()
+
                         var i = 0, j = 0
                         for (j = 0; j < points_array.length; j++) {
                             var points = points_array[j].points;
                             ctx.strokeStyle= points_array[j].color;
-                            console.log(points_array[j].color);
+                            ctx.beginPath()
                             ctx.moveTo(points[0].x, points[0].y)
                             for (i = 0; i < points.length - 1; i++) {
                                 ctx.moveTo(points[i].x, points[i].y)