{"action":"created","issue":{"url":"https://api.github.com/repos/ruby2d/ruby2d/issues/1","repository_url":"https://api.github.com/repos/ruby2d/ruby2d","labels_url":"https://api.github.com/repos/ruby2d/ruby2d/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ruby2d/ruby2d/issues/1/comments","events_url":"https://api.github.com/repos/ruby2d/ruby2d/issues/1/events","html_url":"https://github.com/ruby2d/ruby2d/issues/1","id":124627671,"number":1,"title":"Allow colors to be created with RGB hex values","user":{"login":"blacktm","id":887429,"avatar_url":"https://avatars.githubusercontent.com/u/887429?v=3","gravatar_id":"","url":"https://api.github.com/users/blacktm","html_url":"https://github.com/blacktm","followers_url":"https://api.github.com/users/blacktm/followers","following_url":"https://api.github.com/users/blacktm/following{/other_user}","gists_url":"https://api.github.com/users/blacktm/gists{/gist_id}","starred_url":"https://api.github.com/users/blacktm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blacktm/subscriptions","organizations_url":"https://api.github.com/users/blacktm/orgs","repos_url":"https://api.github.com/users/blacktm/repos","events_url":"https://api.github.com/users/blacktm/events{/privacy}","received_events_url":"https://api.github.com/users/blacktm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-03T04:16:44Z","updated_at":"2016-04-08T22:59:36Z","closed_at":null,"body":"See example RGB hex values in [this article](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).\r\n\r\n### User Story\r\n\r\nAs a user, I want to create new `Color` objects using hex values, so that it's more familiar to us web developers.\r\n\r\n### Tasks\r\n\r\n- [ ] Figure out algorithm for converting hex values to red, green, blue `Float` values\r\n- [ ] Extend `Color` class to accept hex values and convert\r\n- [ ] Write RSpec tests"},"comment":{"url":"https://api.github.com/repos/ruby2d/ruby2d/issues/comments/207641015","html_url":"https://github.com/ruby2d/ruby2d/issues/1#issuecomment-207641015","issue_url":"https://api.github.com/repos/ruby2d/ruby2d/issues/1","id":207641015,"user":{"login":"blacktm","id":887429,"avatar_url":"https://avatars.githubusercontent.com/u/887429?v=3","gravatar_id":"","url":"https://api.github.com/users/blacktm","html_url":"https://github.com/blacktm","followers_url":"https://api.github.com/users/blacktm/followers","following_url":"https://api.github.com/users/blacktm/following{/other_user}","gists_url":"https://api.github.com/users/blacktm/gists{/gist_id}","starred_url":"https://api.github.com/users/blacktm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blacktm/subscriptions","organizations_url":"https://api.github.com/users/blacktm/orgs","repos_url":"https://api.github.com/users/blacktm/repos","events_url":"https://api.github.com/users/blacktm/events{/privacy}","received_events_url":"https://api.github.com/users/blacktm/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T22:59:36Z","updated_at":"2016-04-08T22:59:36Z","body":"@kamishettysreeja25 Awesome! I suppose the algorithm could convert to RGB values first and then convert to floats, or skip and go directly to floats, whatever seems to be most intuitive."}}