{"action":"created","issue":{"url":"https://api.github.com/repos/eugeneware/gifencoder/issues/9","repository_url":"https://api.github.com/repos/eugeneware/gifencoder","labels_url":"https://api.github.com/repos/eugeneware/gifencoder/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/eugeneware/gifencoder/issues/9/comments","events_url":"https://api.github.com/repos/eugeneware/gifencoder/issues/9/events","html_url":"https://github.com/eugeneware/gifencoder/issues/9","id":138154025,"number":9,"title":"Dispose not disposing frames","user":{"login":"Nickstr","id":1457095,"avatar_url":"https://avatars3.githubusercontent.com/u/1457095?v=4","gravatar_id":"","url":"https://api.github.com/users/Nickstr","html_url":"https://github.com/Nickstr","followers_url":"https://api.github.com/users/Nickstr/followers","following_url":"https://api.github.com/users/Nickstr/following{/other_user}","gists_url":"https://api.github.com/users/Nickstr/gists{/gist_id}","starred_url":"https://api.github.com/users/Nickstr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nickstr/subscriptions","organizations_url":"https://api.github.com/users/Nickstr/orgs","repos_url":"https://api.github.com/users/Nickstr/repos","events_url":"https://api.github.com/users/Nickstr/events{/privacy}","received_events_url":"https://api.github.com/users/Nickstr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-03-03T11:36:06Z","updated_at":"2017-07-26T06:53:45Z","closed_at":"2017-07-26T06:53:45Z","body":"``` JavaScript\nvar gif = new GifEncoder(420, 240);\nvar canvas = new Canvas(420, 240);\nvar ctx = canvas.getContext('2d');\n\ngif.start();\ngif.setRepeat(0); \ngif.setDelay(500);\ngif.setTransparent('#000000');\ngif.setDispose(2)\n\nctx.fillStyle = 'yellow';\nctx.fillRect(43, 34, 100, 100);\ngif.addFrame(ctx);\n\nctx.fillStyle = 'red';\nctx.fillRect(0, 0, 100, 100);\ngif.addFrame(ctx);\n\nctx.fillStyle = 'blue';\nctx.arc(150,150,50,0,Math.PI*2,true);\nctx.fill();\ngif.addFrame(ctx);\n\ngif.finish();\n```\n\nResult:\n![192 168 99-1](https://cloud.githubusercontent.com/assets/1457095/13493113/6ea3d662-e13c-11e5-85f3-3e4e6b5292c9.gif)\n\nI expected it to dispose frames when it goes to the next one and only show 1 shape per frame.\n"},"comment":{"url":"https://api.github.com/repos/eugeneware/gifencoder/issues/comments/317965303","html_url":"https://github.com/eugeneware/gifencoder/issues/9#issuecomment-317965303","issue_url":"https://api.github.com/repos/eugeneware/gifencoder/issues/9","id":317965303,"user":{"login":"heikkipora","id":259924,"avatar_url":"https://avatars2.githubusercontent.com/u/259924?v=4","gravatar_id":"","url":"https://api.github.com/users/heikkipora","html_url":"https://github.com/heikkipora","followers_url":"https://api.github.com/users/heikkipora/followers","following_url":"https://api.github.com/users/heikkipora/following{/other_user}","gists_url":"https://api.github.com/users/heikkipora/gists{/gist_id}","starred_url":"https://api.github.com/users/heikkipora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heikkipora/subscriptions","organizations_url":"https://api.github.com/users/heikkipora/orgs","repos_url":"https://api.github.com/users/heikkipora/repos","events_url":"https://api.github.com/users/heikkipora/events{/privacy}","received_events_url":"https://api.github.com/users/heikkipora/received_events","type":"User","site_admin":false},"created_at":"2017-07-26T06:53:45Z","updated_at":"2017-07-26T06:53:45Z","body":"You must clear the canvas between frames to have the desired effect."}}
{"actor":{"display_login":"heikkipora"}}