瀏覽代碼

fix diff colors

David 10 年之前
父節點
當前提交
a3ae463444
共有 1 個文件被更改,包括 2 次插入2 次删除
  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)