{"action":"created","issue":{"url":"https://api.github.com/repos/pshihn/rough/issues/27","repository_url":"https://api.github.com/repos/pshihn/rough","labels_url":"https://api.github.com/repos/pshihn/rough/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/pshihn/rough/issues/27/comments","events_url":"https://api.github.com/repos/pshihn/rough/issues/27/events","html_url":"https://github.com/pshihn/rough/issues/27","id":305491285,"number":27,"title":"Option to eliminate randomness","user":{"login":"novoselrok","id":6417322,"avatar_url":"https://avatars2.githubusercontent.com/u/6417322?v=4","gravatar_id":"","url":"https://api.github.com/users/novoselrok","html_url":"https://github.com/novoselrok","followers_url":"https://api.github.com/users/novoselrok/followers","following_url":"https://api.github.com/users/novoselrok/following{/other_user}","gists_url":"https://api.github.com/users/novoselrok/gists{/gist_id}","starred_url":"https://api.github.com/users/novoselrok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novoselrok/subscriptions","organizations_url":"https://api.github.com/users/novoselrok/orgs","repos_url":"https://api.github.com/users/novoselrok/repos","events_url":"https://api.github.com/users/novoselrok/events{/privacy}","received_events_url":"https://api.github.com/users/novoselrok/received_events","type":"User","site_admin":false},"labels":[{"id":499838596,"url":"https://api.github.com/repos/pshihn/rough/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"pshihn","id":833927,"avatar_url":"https://avatars1.githubusercontent.com/u/833927?v=4","gravatar_id":"","url":"https://api.github.com/users/pshihn","html_url":"https://github.com/pshihn","followers_url":"https://api.github.com/users/pshihn/followers","following_url":"https://api.github.com/users/pshihn/following{/other_user}","gists_url":"https://api.github.com/users/pshihn/gists{/gist_id}","starred_url":"https://api.github.com/users/pshihn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pshihn/subscriptions","organizations_url":"https://api.github.com/users/pshihn/orgs","repos_url":"https://api.github.com/users/pshihn/repos","events_url":"https://api.github.com/users/pshihn/events{/privacy}","received_events_url":"https://api.github.com/users/pshihn/received_events","type":"User","site_admin":false},"assignees":[{"login":"pshihn","id":833927,"avatar_url":"https://avatars1.githubusercontent.com/u/833927?v=4","gravatar_id":"","url":"https://api.github.com/users/pshihn","html_url":"https://github.com/pshihn","followers_url":"https://api.github.com/users/pshihn/followers","following_url":"https://api.github.com/users/pshihn/following{/other_user}","gists_url":"https://api.github.com/users/pshihn/gists{/gist_id}","starred_url":"https://api.github.com/users/pshihn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pshihn/subscriptions","organizations_url":"https://api.github.com/users/pshihn/orgs","repos_url":"https://api.github.com/users/pshihn/repos","events_url":"https://api.github.com/users/pshihn/events{/privacy}","received_events_url":"https://api.github.com/users/pshihn/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2018-03-15T10:22:32Z","updated_at":"2018-03-20T02:03:36Z","closed_at":null,"author_association":"NONE","body":"It would be great if there was an option to eliminate randomness when drawing shapes. So basically that the first time it would be random, and then the same shape would be drawn again. \r\n\r\nFor example drawing lines on canvas and then redrawing the entire canvas causes the lines to flicker due to randomness.\r\n![roughjs](https://user-images.githubusercontent.com/6417322/37457536-91d3193c-2842-11e8-81fa-d9c3a1abcd65.gif)\r\n\r\nI would be willing to work on this as a PR, if you think it's a good idea.\r\n"},"comment":{"url":"https://api.github.com/repos/pshihn/rough/issues/comments/374447196","html_url":"https://github.com/pshihn/rough/issues/27#issuecomment-374447196","issue_url":"https://api.github.com/repos/pshihn/rough/issues/27","id":374447196,"user":{"login":"AriaFallah","id":9424976,"avatar_url":"https://avatars3.githubusercontent.com/u/9424976?v=4","gravatar_id":"","url":"https://api.github.com/users/AriaFallah","html_url":"https://github.com/AriaFallah","followers_url":"https://api.github.com/users/AriaFallah/followers","following_url":"https://api.github.com/users/AriaFallah/following{/other_user}","gists_url":"https://api.github.com/users/AriaFallah/gists{/gist_id}","starred_url":"https://api.github.com/users/AriaFallah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AriaFallah/subscriptions","organizations_url":"https://api.github.com/users/AriaFallah/orgs","repos_url":"https://api.github.com/users/AriaFallah/repos","events_url":"https://api.github.com/users/AriaFallah/events{/privacy}","received_events_url":"https://api.github.com/users/AriaFallah/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T02:03:36Z","updated_at":"2018-03-20T02:03:36Z","author_association":"NONE","body":"@pshihn with this new API is there any way to have\r\n\r\n```js\r\nroughCanvas.rectangle(0, 0, 25, 25);\r\nroughCanvas.rectangle(10, 10, 25, 25);\r\n```\r\n\r\nthe two above calls, draw the same exact shape? Basically, have the library draw the same thing even when the `x` and `y` coordinates change.\r\n\r\nRight now I'm not sure how to use the generators for a moving object like the snake."}}
{"actor":{"display_login":"AriaFallah"}}