{"action":"created","issue":{"url":"https://api.github.com/repos/CoraleStudios/Colore/issues/25","labels_url":"https://api.github.com/repos/CoraleStudios/Colore/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/CoraleStudios/Colore/issues/25/comments","events_url":"https://api.github.com/repos/CoraleStudios/Colore/issues/25/events","html_url":"https://github.com/CoraleStudios/Colore/issues/25","id":65059886,"number":25,"title":"Add more Color conversions?","user":{"login":"Sharparam","id":551094,"avatar_url":"https://avatars.githubusercontent.com/u/551094?v=3","gravatar_id":"","url":"https://api.github.com/users/Sharparam","html_url":"https://github.com/Sharparam","followers_url":"https://api.github.com/users/Sharparam/followers","following_url":"https://api.github.com/users/Sharparam/following{/other_user}","gists_url":"https://api.github.com/users/Sharparam/gists{/gist_id}","starred_url":"https://api.github.com/users/Sharparam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sharparam/subscriptions","organizations_url":"https://api.github.com/users/Sharparam/orgs","repos_url":"https://api.github.com/users/Sharparam/repos","events_url":"https://api.github.com/users/Sharparam/events{/privacy}","received_events_url":"https://api.github.com/users/Sharparam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CoraleStudios/Colore/labels/Enhancement","name":"Enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/CoraleStudios/Colore/labels/Question","name":"Question","color":"cc317c"},{"url":"https://api.github.com/repos/CoraleStudios/Colore/labels/Ready","name":"Ready","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/CoraleStudios/Colore/milestones/6","html_url":"https://github.com/CoraleStudios/Colore/milestones/v2.3","labels_url":"https://api.github.com/repos/CoraleStudios/Colore/milestones/6/labels","id":1319166,"number":6,"title":"v2.3","description":"","creator":{"login":"Sharparam","id":551094,"avatar_url":"https://avatars.githubusercontent.com/u/551094?v=3","gravatar_id":"","url":"https://api.github.com/users/Sharparam","html_url":"https://github.com/Sharparam","followers_url":"https://api.github.com/users/Sharparam/followers","following_url":"https://api.github.com/users/Sharparam/following{/other_user}","gists_url":"https://api.github.com/users/Sharparam/gists{/gist_id}","starred_url":"https://api.github.com/users/Sharparam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sharparam/subscriptions","organizations_url":"https://api.github.com/users/Sharparam/orgs","repos_url":"https://api.github.com/users/Sharparam/repos","events_url":"https://api.github.com/users/Sharparam/events{/privacy}","received_events_url":"https://api.github.com/users/Sharparam/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":2,"state":"open","created_at":"2015-09-22T20:12:20Z","updated_at":"2015-10-01T09:18:12Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-03-29T13:11:37Z","updated_at":"2015-10-01T09:49:06Z","closed_at":null,"body":"In the few apps that so far exist using Colore, a common operation is to convert to/from `System.Drawing.Color`, should we add methods for this on the Color struct?\r\n\r\n**Pros:**\r\n * Able to convert seamlessly between `Color` and `System.Drawing.Color`.\r\n\r\n**Cons:**\r\n * ~~We have to depend on the `System.Drawing` assembly for a single feature.~~\r\n\r\n**Potential issues:**\r\n * Dealing with the alpha component of `System.Drawing.Color`, do we make the converted color darker with more transparent colors?\r\n\r\n### Dealing with alpha\r\nThis still needs work. If a color is being applied to a cleared keyboard (or where the Color can't possibly be known, such as the first call) we should probably just blend against black. Otherwise we need to blend against the previous color (with respect to the alpha value).\r\n\r\n#### Storing alpha value\r\nCan this be stored in the left-most two bytes of the `_value` field? We need to find out if the C++ `COLORREF` struct cares about them."},"comment":{"url":"https://api.github.com/repos/CoraleStudios/Colore/issues/comments/144680720","html_url":"https://github.com/CoraleStudios/Colore/issues/25#issuecomment-144680720","issue_url":"https://api.github.com/repos/CoraleStudios/Colore/issues/25","id":144680720,"user":{"login":"njbmartin","id":5699471,"avatar_url":"https://avatars.githubusercontent.com/u/5699471?v=3","gravatar_id":"","url":"https://api.github.com/users/njbmartin","html_url":"https://github.com/njbmartin","followers_url":"https://api.github.com/users/njbmartin/followers","following_url":"https://api.github.com/users/njbmartin/following{/other_user}","gists_url":"https://api.github.com/users/njbmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/njbmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njbmartin/subscriptions","organizations_url":"https://api.github.com/users/njbmartin/orgs","repos_url":"https://api.github.com/users/njbmartin/repos","events_url":"https://api.github.com/users/njbmartin/events{/privacy}","received_events_url":"https://api.github.com/users/njbmartin/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T09:49:06Z","updated_at":"2015-10-01T09:49:06Z","body":"Based on #67, I'd recommend moving to using the `System.Drawing.Color` for presets."}}