{"action":"created","issue":{"url":"https://api.github.com/repos/rwaldron/johnny-five/issues/818","labels_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/818/labels{/name}","comments_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/818/comments","events_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/818/events","html_url":"https://github.com/rwaldron/johnny-five/pull/818","id":84288451,"number":818,"title":"[WIP] Led.RGB: Add intensity method","user":{"login":"scottgonzalez","id":141167,"avatar_url":"https://avatars.githubusercontent.com/u/141167?v=3","gravatar_id":"","url":"https://api.github.com/users/scottgonzalez","html_url":"https://github.com/scottgonzalez","followers_url":"https://api.github.com/users/scottgonzalez/followers","following_url":"https://api.github.com/users/scottgonzalez/following{/other_user}","gists_url":"https://api.github.com/users/scottgonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/scottgonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottgonzalez/subscriptions","organizations_url":"https://api.github.com/users/scottgonzalez/orgs","repos_url":"https://api.github.com/users/scottgonzalez/repos","events_url":"https://api.github.com/users/scottgonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/scottgonzalez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-03T00:58:33Z","updated_at":"2015-06-03T15:23:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rwaldron/johnny-five/pulls/818","html_url":"https://github.com/rwaldron/johnny-five/pull/818","diff_url":"https://github.com/rwaldron/johnny-five/pull/818.diff","patch_url":"https://github.com/rwaldron/johnny-five/pull/818.patch"},"body":"Fixes #737\r\n\r\nI want to make sure this is the expected functionality before I write the tests for this.\r\n\r\nThe idea is that we find the color with the highest value and scale based on that. The internal values may contain fractional values as a result, but this ensures that we're not losing information as we scale to very low intensities. As a result, `.color()` when used as a getter has been modified to round the values. This currently works fine, but I'm not sure if we should be rounding the values before sending them to `io` just to be safe."},"comment":{"url":"https://api.github.com/repos/rwaldron/johnny-five/issues/comments/108481518","html_url":"https://github.com/rwaldron/johnny-five/pull/818#issuecomment-108481518","issue_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/818","id":108481518,"user":{"login":"Resseguie","id":1581285,"avatar_url":"https://avatars.githubusercontent.com/u/1581285?v=3","gravatar_id":"","url":"https://api.github.com/users/Resseguie","html_url":"https://github.com/Resseguie","followers_url":"https://api.github.com/users/Resseguie/followers","following_url":"https://api.github.com/users/Resseguie/following{/other_user}","gists_url":"https://api.github.com/users/Resseguie/gists{/gist_id}","starred_url":"https://api.github.com/users/Resseguie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Resseguie/subscriptions","organizations_url":"https://api.github.com/users/Resseguie/orgs","repos_url":"https://api.github.com/users/Resseguie/repos","events_url":"https://api.github.com/users/Resseguie/events{/privacy}","received_events_url":"https://api.github.com/users/Resseguie/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T15:23:33Z","updated_at":"2015-06-03T15:23:33Z","body":"And if it sets a state property, should a call to `.intensity()` without params return the current intensity value? (similar to `.color()`)"}}