{"action":"created","issue":{"url":"https://api.github.com/repos/photonstorm/phaser/issues/3655","repository_url":"https://api.github.com/repos/photonstorm/phaser","labels_url":"https://api.github.com/repos/photonstorm/phaser/issues/3655/labels{/name}","comments_url":"https://api.github.com/repos/photonstorm/phaser/issues/3655/comments","events_url":"https://api.github.com/repos/photonstorm/phaser/issues/3655/events","html_url":"https://github.com/photonstorm/phaser/issues/3655","id":321849561,"node_id":"MDU6SXNzdWUzMjE4NDk1NjE=","number":3655,"title":"graphics.clear() not working properly in CANVAS mode (drawn strokes remain)","user":{"login":"Antriel","id":6341110,"node_id":"MDQ6VXNlcjYzNDExMTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6341110?v=4","gravatar_id":"","url":"https://api.github.com/users/Antriel","html_url":"https://github.com/Antriel","followers_url":"https://api.github.com/users/Antriel/followers","following_url":"https://api.github.com/users/Antriel/following{/other_user}","gists_url":"https://api.github.com/users/Antriel/gists{/gist_id}","starred_url":"https://api.github.com/users/Antriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Antriel/subscriptions","organizations_url":"https://api.github.com/users/Antriel/orgs","repos_url":"https://api.github.com/users/Antriel/repos","events_url":"https://api.github.com/users/Antriel/events{/privacy}","received_events_url":"https://api.github.com/users/Antriel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-10T08:21:25Z","updated_at":"2018-08-22T18:41:59Z","closed_at":"2018-05-10T12:28:38Z","author_association":"CONTRIBUTOR","body":"Version 3.7.1\r\nThis code will draw a nice filled triangle as the drawn lines will keep getting rendered.\r\n```js\r\nvar i = 0;\r\nfunction update() {\r\n    graphics.clear();\r\n    graphics.moveTo(0, 0);\r\n    graphics.lineTo(100 + i, i++);\r\n    graphics.strokePath();\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/photonstorm/phaser/issues/comments/415136966","html_url":"https://github.com/photonstorm/phaser/issues/3655#issuecomment-415136966","issue_url":"https://api.github.com/repos/photonstorm/phaser/issues/3655","id":415136966,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTEzNjk2Ng==","user":{"login":"Antriel","id":6341110,"node_id":"MDQ6VXNlcjYzNDExMTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6341110?v=4","gravatar_id":"","url":"https://api.github.com/users/Antriel","html_url":"https://github.com/Antriel","followers_url":"https://api.github.com/users/Antriel/followers","following_url":"https://api.github.com/users/Antriel/following{/other_user}","gists_url":"https://api.github.com/users/Antriel/gists{/gist_id}","starred_url":"https://api.github.com/users/Antriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Antriel/subscriptions","organizations_url":"https://api.github.com/users/Antriel/orgs","repos_url":"https://api.github.com/users/Antriel/repos","events_url":"https://api.github.com/users/Antriel/events{/privacy}","received_events_url":"https://api.github.com/users/Antriel/received_events","type":"User","site_admin":false},"created_at":"2018-08-22T18:41:59Z","updated_at":"2018-08-22T18:41:59Z","author_association":"CONTRIBUTOR","body":"For future reference, the solution to my original code is:\r\n```\r\nvar i = 0;\r\nfunction update() {\r\n    graphics.clear();\r\n    graphics.beginPath(); //add this\r\n    graphics.moveTo(0, 0);\r\n    graphics.lineTo(100 + i, i++);\r\n    graphics.strokePath();\r\n}\r\n```"}}
{"actor":{"display_login":"Antriel"}}