{"action":"created","issue":{"url":"https://api.github.com/repos/brownplt/pyret-lang/issues/475","repository_url":"https://api.github.com/repos/brownplt/pyret-lang","labels_url":"https://api.github.com/repos/brownplt/pyret-lang/issues/475/labels{/name}","comments_url":"https://api.github.com/repos/brownplt/pyret-lang/issues/475/comments","events_url":"https://api.github.com/repos/brownplt/pyret-lang/issues/475/events","html_url":"https://github.com/brownplt/pyret-lang/issues/475","id":64170801,"number":475,"title":"image-lib: range of aStyle","user":{"login":"sorawee","id":9099577,"avatar_url":"https://avatars.githubusercontent.com/u/9099577?v=3","gravatar_id":"","url":"https://api.github.com/users/sorawee","html_url":"https://github.com/sorawee","followers_url":"https://api.github.com/users/sorawee/followers","following_url":"https://api.github.com/users/sorawee/following{/other_user}","gists_url":"https://api.github.com/users/sorawee/gists{/gist_id}","starred_url":"https://api.github.com/users/sorawee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorawee/subscriptions","organizations_url":"https://api.github.com/users/sorawee/orgs","repos_url":"https://api.github.com/users/sorawee/repos","events_url":"https://api.github.com/users/sorawee/events{/privacy}","received_events_url":"https://api.github.com/users/sorawee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-03-25T04:23:57Z","updated_at":"2016-07-15T00:46:02Z","closed_at":null,"body":"Currently, the code is:\r\n\r\n        //////////////////////////////////////////////////////////////////////\r\n        // colorString : hexColor Style -> rgba\r\n        // Style can be \"solid\" (1.0), \"outline\" (1.0), a number (0-1.0) or null (1.0)\r\n        var colorString = function(aColor, aStyle) {\r\n          var alpha = isNaN(aStyle)? 1.0 : aStyle/255;\r\n          return \"rgba(\" + colorRed(aColor) + \",\" +\r\n                          colorGreen(aColor) + \", \" +\r\n                          colorBlue(aColor) + \", \" +\r\n                          alpha + \")\";\r\n        };\r\n\r\nThis doesn't make sense. Seeing from the code, I think that aStyle should have range from 0 to 255. Otherwise (if aStyle ranges from 0-1.0), there shouldn't be denominator."},"comment":{"url":"https://api.github.com/repos/brownplt/pyret-lang/issues/comments/232832330","html_url":"https://github.com/brownplt/pyret-lang/issues/475#issuecomment-232832330","issue_url":"https://api.github.com/repos/brownplt/pyret-lang/issues/475","id":232832330,"user":{"login":"schanzer","id":77126,"avatar_url":"https://avatars.githubusercontent.com/u/77126?v=3","gravatar_id":"","url":"https://api.github.com/users/schanzer","html_url":"https://github.com/schanzer","followers_url":"https://api.github.com/users/schanzer/followers","following_url":"https://api.github.com/users/schanzer/following{/other_user}","gists_url":"https://api.github.com/users/schanzer/gists{/gist_id}","starred_url":"https://api.github.com/users/schanzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schanzer/subscriptions","organizations_url":"https://api.github.com/users/schanzer/orgs","repos_url":"https://api.github.com/users/schanzer/repos","events_url":"https://api.github.com/users/schanzer/events{/privacy}","received_events_url":"https://api.github.com/users/schanzer/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T00:46:02Z","updated_at":"2016-07-15T00:46:02Z","body":"You're right - the comment there should say 0-255"}}
{"actor":{"display_login":"schanzer"}}