Browse Source

fix diff colors

David 10 năm trước cách đây
mục cha
commit
a3ae463444
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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)