{"action":"created","issue":{"url":"https://api.github.com/repos/haxenme/nme/issues/320","repository_url":"https://api.github.com/repos/haxenme/nme","labels_url":"https://api.github.com/repos/haxenme/nme/issues/320/labels{/name}","comments_url":"https://api.github.com/repos/haxenme/nme/issues/320/comments","events_url":"https://api.github.com/repos/haxenme/nme/issues/320/events","html_url":"https://github.com/haxenme/nme/issues/320","id":160057519,"number":320,"title":"drawPath and self intersections issue","user":{"login":"azrafe7","id":1266447,"avatar_url":"https://avatars.githubusercontent.com/u/1266447?v=3","gravatar_id":"","url":"https://api.github.com/users/azrafe7","html_url":"https://github.com/azrafe7","followers_url":"https://api.github.com/users/azrafe7/followers","following_url":"https://api.github.com/users/azrafe7/following{/other_user}","gists_url":"https://api.github.com/users/azrafe7/gists{/gist_id}","starred_url":"https://api.github.com/users/azrafe7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azrafe7/subscriptions","organizations_url":"https://api.github.com/users/azrafe7/orgs","repos_url":"https://api.github.com/users/azrafe7/repos","events_url":"https://api.github.com/users/azrafe7/events{/privacy}","received_events_url":"https://api.github.com/users/azrafe7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-13T22:17:55Z","updated_at":"2016-06-14T01:08:55Z","closed_at":null,"body":"Code:\r\n```haxe\r\nclass Main extends Sprite {\r\n\t\r\n\tvar COLOR:Int = 0xFFFF0000;\r\n\tvar fill:Bool = true;\r\n\tvar paths = [\r\n\t\t[0.,0, 100,0, 0,100, 100,100]\r\n\t];\r\n\r\n\tvar g:Graphics;\r\n\t\r\n\tstatic public function main():Void {\r\n\t\tnew Main();\r\n\t}\r\n\t\r\n\tpublic function new() {\r\n\t\tsuper();\r\n\t\t\r\n\t\tg = flash.Lib.current.graphics;\r\n\t\tg.lineStyle(1, COLOR, 1);\r\n\t\tdrawPaths(paths, 5, 5);\r\n\t}\r\n\r\n\tpublic function drawPaths(paths:Array<Array<Float>>, x:Float, y:Float):Void \r\n\t{\r\n\t\tif (paths.length <= 0) return;\r\n\t\t\r\n\t\tvar data = new flash.Vector();\r\n\t\tvar commands = new flash.Vector();\r\n\r\n\t\tfor (path in paths) {\r\n\t\t\tvar len = path.length;\r\n\t\t\t\r\n\t\t\tvar i = 0;\r\n\t\t\twhile (i < len) {\r\n\t\t\t\tif (i == 0) commands.push(1); // moveTo\r\n\t\t\t\telse commands.push(2); // lineTo\r\n\t\t\t\t\r\n\t\t\t\tdata.push(x + path[i]);\r\n\t\t\t\tdata.push(y + path[i + 1]);\r\n\t\t\t\t\r\n\t\t\t\ti += 2;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// close\r\n\t\t\tif (fill) {\r\n\t\t\t\tcommands.push(2);\r\n\t\t\t\tdata.push(x + path[0]);\r\n\t\t\t\tdata.push(y + path[1]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (fill) g.beginFill(COLOR, .5);\r\n\t\tg.drawPath(commands, data, flash.display.GraphicsPathWinding.EVEN_ODD);\r\n\t\tif (fill) g.endFill();\r\n\t}\r\n}\r\n```\r\n\r\nExpected (flash):\r\n![flash](https://cloud.githubusercontent.com/assets/1266447/16025028/4f7e194e-31c5-11e6-9b3d-289a15b4055e.png)\r\n\r\nActual (neko):\r\n![neko](https://cloud.githubusercontent.com/assets/1266447/16025033/536b2380-31c5-11e6-8e7f-efe220eb01e1.png)\r\n"},"comment":{"url":"https://api.github.com/repos/haxenme/nme/issues/comments/225753597","html_url":"https://github.com/haxenme/nme/issues/320#issuecomment-225753597","issue_url":"https://api.github.com/repos/haxenme/nme/issues/320","id":225753597,"user":{"login":"codeservice","id":1771547,"avatar_url":"https://avatars.githubusercontent.com/u/1771547?v=3","gravatar_id":"","url":"https://api.github.com/users/codeservice","html_url":"https://github.com/codeservice","followers_url":"https://api.github.com/users/codeservice/followers","following_url":"https://api.github.com/users/codeservice/following{/other_user}","gists_url":"https://api.github.com/users/codeservice/gists{/gist_id}","starred_url":"https://api.github.com/users/codeservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeservice/subscriptions","organizations_url":"https://api.github.com/users/codeservice/orgs","repos_url":"https://api.github.com/users/codeservice/repos","events_url":"https://api.github.com/users/codeservice/events{/privacy}","received_events_url":"https://api.github.com/users/codeservice/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T01:08:55Z","updated_at":"2016-06-14T01:08:55Z","body":"Project - common - Tessellated.cpp I think it there."}}
{"actor":{"display_login":"codeservice"}}