{"action":"created","comment":{"url":"https://api.github.com/repos/Ogeon/palette/pulls/comments/56348975","id":56348975,"diff_hunk":"@@ -0,0 +1,53 @@\n+//!Various RGB standards.\n+\n+use num::Float;\n+use Yxy;\n+use flt;\n+use white_point::{WhitePoint, D65};\n+use rgb::{Primaries, RgbSpace, RgbStandard};\n+use pixel::TransferFn;\n+\n+///The sRGB color space.\n+#[derive(Copy, Clone, Debug, PartialEq, Eq)]\n+pub struct Srgb;\n+\n+impl Primaries for Srgb {","path":"src/rgb/standards.rs","position":14,"original_position":14,"commit_id":"50b813a0710b0c81dfc8169628e10751e58cca5c","original_commit_id":"50b813a0710b0c81dfc8169628e10751e58cca5c","user":{"login":"Ogeon","id":225229,"avatar_url":"https://avatars.githubusercontent.com/u/225229?v=3","gravatar_id":"","url":"https://api.github.com/users/Ogeon","html_url":"https://github.com/Ogeon","followers_url":"https://api.github.com/users/Ogeon/followers","following_url":"https://api.github.com/users/Ogeon/following{/other_user}","gists_url":"https://api.github.com/users/Ogeon/gists{/gist_id}","starred_url":"https://api.github.com/users/Ogeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ogeon/subscriptions","organizations_url":"https://api.github.com/users/Ogeon/orgs","repos_url":"https://api.github.com/users/Ogeon/repos","events_url":"https://api.github.com/users/Ogeon/events{/privacy}","received_events_url":"https://api.github.com/users/Ogeon/received_events","type":"User","site_admin":false},"body":">```rust\r\nimpl RgbSpace for Srgb {\r\n    type Primaries = Srgb;\r\n    type WhitePoint = D65;\r\n}\r\n```\r\n\r\nThat's still good old sRGB. What I meant was the sRGB primaries with any other white point. No adaption, just a different combination.","created_at":"2016-03-16T15:00:55Z","updated_at":"2016-03-16T15:00:55Z","html_url":"https://github.com/Ogeon/palette/pull/60#discussion_r56348975","pull_request_url":"https://api.github.com/repos/Ogeon/palette/pulls/60","_links":{"self":{"href":"https://api.github.com/repos/Ogeon/palette/pulls/comments/56348975"},"html":{"href":"https://github.com/Ogeon/palette/pull/60#discussion_r56348975"},"pull_request":{"href":"https://api.github.com/repos/Ogeon/palette/pulls/60"}}},"pull_request":{"url":"https://api.github.com/repos/Ogeon/palette/pulls/60","id":62462512,"html_url":"https://github.com/Ogeon/palette/pull/60","diff_url":"https://github.com/Ogeon/palette/pull/60.diff","patch_url":"https://github.com/Ogeon/palette/pull/60.patch","issue_url":"https://api.github.com/repos/Ogeon/palette/issues/60","number":60,"state":"open","locked":false,"title":"[WIP] Generalize the RGB types over RGB standards","user":{"login":"Ogeon","id":225229,"avatar_url":"https://avatars.githubusercontent.com/u/225229?v=3","gravatar_id":"","url":"https://api.github.com/users/Ogeon","html_url":"https://github.com/Ogeon","followers_url":"https://api.github.com/users/Ogeon/followers","following_url":"https://api.github.com/users/Ogeon/following{/other_user}","gists_url":"https://api.github.com/users/Ogeon/gists{/gist_id}","starred_url":"https://api.github.com/users/Ogeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ogeon/subscriptions","organizations_url":"https://api.github.com/users/Ogeon/orgs","repos_url":"https://api.github.com/users/Ogeon/repos","events_url":"https://api.github.com/users/Ogeon/events{/privacy}","received_events_url":"https://api.github.com/users/Ogeon/received_events","type":"User","site_admin":false},"body":"This changes the `Rgb` type to have a type parameter that implements the `RgbSpace` trait. This trait defines a set of primaries and a white point.","created_at":"2016-03-10T21:54:32Z","updated_at":"2016-03-16T15:00:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62153a7ee9cd3969bcb3091774468ecad07c1695","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Ogeon/palette/pulls/60/commits","review_comments_url":"https://api.github.com/repos/Ogeon/palette/pulls/60/comments","review_comment_url":"https://api.github.com/repos/Ogeon/palette/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ogeon/palette/issues/60/comments","statuses_url":"https://api.github.com/repos/Ogeon/palette/statuses/50b813a0710b0c81dfc8169628e10751e58cca5c","head":{"label":"Ogeon:rgb_reform","ref":"rgb_reform","sha":"50b813a0710b0c81dfc8169628e10751e58cca5c","user":{"login":"Ogeon","id":225229,"avatar_url":"https://avatars.githubusercontent.com/u/225229?v=3","gravatar_id":"","url":"https://api.github.com/users/Ogeon","html_url":"https://github.com/Ogeon","followers_url":"https://api.github.com/users/Ogeon/followers","following_url":"https://api.github.com/users/Ogeon/following{/other_user}","gists_url":"https://api.github.com/users/Ogeon/gists{/gist_id}","starred_url":"https://api.github.com/users/Ogeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ogeon/subscriptions","organizations_url":"https://api.github.com/users/Ogeon/orgs","repos_url":"https://api.github.com/users/Ogeon/repos","events_url":"https://api.github.com/users/Ogeon/events{/privacy}","received_events_url":"https://api.github.com/users/Ogeon/received_events","type":"User","site_admin":false},"repo":{"id":47269390,"name":"palette","full_name":"Ogeon/palette","owner":{"login":"Ogeon","id":225229,"avatar_url":"https://avatars.githubusercontent.com/u/225229?v=3","gravatar_id":"","url":"https://api.github.com/users/Ogeon","html_url":"https://github.com/Ogeon","followers_url":"https://api.github.com/users/Ogeon/followers","following_url":"https://api.github.com/users/Ogeon/following{/other_user}","gists_url":"https://api.github.com/users/Ogeon/gists{/gist_id}","starred_url":"https://api.github.com/users/Ogeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ogeon/subscriptions","organizations_url":"https://api.github.com/users/Ogeon/orgs","repos_url":"https://api.github.com/users/Ogeon/repos","events_url":"https://api.github.com/users/Ogeon/events{/privacy}","received_events_url":"https://api.github.com/users/Ogeon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ogeon/palette","description":"A Rust library for linear color calculations and conversion","fork":false,"url":"https://api.github.com/repos/Ogeon/palette","forks_url":"https://api.github.com/repos/Ogeon/palette/forks","keys_url":"https://api.github.com/repos/Ogeon/palette/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ogeon/palette/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ogeon/palette/teams","hooks_url":"https://api.github.com/repos/Ogeon/palette/hooks","issue_events_url":"https://api.github.com/repos/Ogeon/palette/issues/events{/number}","events_url":"https://api.github.com/repos/Ogeon/palette/events","assignees_url":"https://api.github.com/repos/Ogeon/palette/assignees{/user}","branches_url":"https://api.github.com/repos/Ogeon/palette/branches{/branch}","tags_url":"https://api.github.com/repos/Ogeon/palette/tags","blobs_url":"https://api.github.com/repos/Ogeon/palette/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ogeon/palette/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ogeon/palette/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ogeon/palette/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ogeon/palette/statuses/{sha}","languages_url":"https://api.github.com/repos/Ogeon/palette/languages","stargazers_url":"https://api.github.com/repos/Ogeon/palette/stargazers","contributors_url":"https://api.github.com/repos/Ogeon/palette/contributors","subscribers_url":"https://api.github.com/repos/Ogeon/palette/subscribers","subscription_url":"https://api.github.com/repos/Ogeon/palette/subscription","commits_url":"https://api.github.com/repos/Ogeon/palette/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ogeon/palette/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ogeon/palette/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ogeon/palette/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ogeon/palette/contents/{+path}","compare_url":"https://api.github.com/repos/Ogeon/palette/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ogeon/palette/merges","archive_url":"https://api.github.com/repos/Ogeon/palette/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ogeon/palette/downloads","issues_url":"https://api.github.com/repos/Ogeon/palette/issues{/number}","pulls_url":"https://api.github.com/repos/Ogeon/palette/pulls{/number}","milestones_url":"https://api.github.com/repos/Ogeon/palette/milestones{/number}","notifications_url":"https://api.github.com/repos/Ogeon/palette/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ogeon/palette/labels{/name}","releases_url":"https://api.github.com/repos/Ogeon/palette/releases{/id}","deployments_url":"https://api.github.com/repos/Ogeon/palette/deployments","created_at":"2015-12-02T15:18:40Z","updated_at":"2016-03-05T07:37:59Z","pushed_at":"2016-03-13T17:25:48Z","git_url":"git://github.com/Ogeon/palette.git","ssh_url":"git@github.com:Ogeon/palette.git","clone_url":"https://github.com/Ogeon/palette.git","svn_url":"https://github.com/Ogeon/palette","homepage":null,"size":1490,"stargazers_count":49,"watchers_count":49,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":12,"forks":2,"open_issues":12,"watchers":49,"default_branch":"master"}},"base":{"label":"Ogeon:master","ref":"master","sha":"a0ff713bc0734dd48ac242d0b96b1d559f35613a","user":{"login":"Ogeon","id":225229,"avatar_url":"https://avatars.githubusercontent.com/u/225229?v=3","gravatar_id":"","url":"https://api.github.com/users/Ogeon","html_url":"https://github.com/Ogeon","followers_url":"https://api.github.com/users/Ogeon/followers","following_url":"https://api.github.com/users/Ogeon/following{/other_user}","gists_url":"https://api.github.com/users/Ogeon/gists{/gist_id}","starred_url":"https://api.github.com/users/Ogeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ogeon/subscriptions","organizations_url":"https://api.github.com/users/Ogeon/orgs","repos_url":"https://api.github.com/users/Ogeon/repos","events_url":"https://api.github.com/users/Ogeon/events{/privacy}","received_events_url":"https://api.github.com/users/Ogeon/received_events","type":"User","site_admin":false},"repo":{"id":47269390,"name":"palette","full_name":"Ogeon/palette","owner":{"login":"Ogeon","id":225229,"avatar_url":"https://avatars.githubusercontent.com/u/225229?v=3","gravatar_id":"","url":"https://api.github.com/users/Ogeon","html_url":"https://github.com/Ogeon","followers_url":"https://api.github.com/users/Ogeon/followers","following_url":"https://api.github.com/users/Ogeon/following{/other_user}","gists_url":"https://api.github.com/users/Ogeon/gists{/gist_id}","starred_url":"https://api.github.com/users/Ogeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ogeon/subscriptions","organizations_url":"https://api.github.com/users/Ogeon/orgs","repos_url":"https://api.github.com/users/Ogeon/repos","events_url":"https://api.github.com/users/Ogeon/events{/privacy}","received_events_url":"https://api.github.com/users/Ogeon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ogeon/palette","description":"A Rust library for linear color calculations and conversion","fork":false,"url":"https://api.github.com/repos/Ogeon/palette","forks_url":"https://api.github.com/repos/Ogeon/palette/forks","keys_url":"https://api.github.com/repos/Ogeon/palette/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ogeon/palette/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ogeon/palette/teams","hooks_url":"https://api.github.com/repos/Ogeon/palette/hooks","issue_events_url":"https://api.github.com/repos/Ogeon/palette/issues/events{/number}","events_url":"https://api.github.com/repos/Ogeon/palette/events","assignees_url":"https://api.github.com/repos/Ogeon/palette/assignees{/user}","branches_url":"https://api.github.com/repos/Ogeon/palette/branches{/branch}","tags_url":"https://api.github.com/repos/Ogeon/palette/tags","blobs_url":"https://api.github.com/repos/Ogeon/palette/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ogeon/palette/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ogeon/palette/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ogeon/palette/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ogeon/palette/statuses/{sha}","languages_url":"https://api.github.com/repos/Ogeon/palette/languages","stargazers_url":"https://api.github.com/repos/Ogeon/palette/stargazers","contributors_url":"https://api.github.com/repos/Ogeon/palette/contributors","subscribers_url":"https://api.github.com/repos/Ogeon/palette/subscribers","subscription_url":"https://api.github.com/repos/Ogeon/palette/subscription","commits_url":"https://api.github.com/repos/Ogeon/palette/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ogeon/palette/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ogeon/palette/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ogeon/palette/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ogeon/palette/contents/{+path}","compare_url":"https://api.github.com/repos/Ogeon/palette/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ogeon/palette/merges","archive_url":"https://api.github.com/repos/Ogeon/palette/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ogeon/palette/downloads","issues_url":"https://api.github.com/repos/Ogeon/palette/issues{/number}","pulls_url":"https://api.github.com/repos/Ogeon/palette/pulls{/number}","milestones_url":"https://api.github.com/repos/Ogeon/palette/milestones{/number}","notifications_url":"https://api.github.com/repos/Ogeon/palette/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ogeon/palette/labels{/name}","releases_url":"https://api.github.com/repos/Ogeon/palette/releases{/id}","deployments_url":"https://api.github.com/repos/Ogeon/palette/deployments","created_at":"2015-12-02T15:18:40Z","updated_at":"2016-03-05T07:37:59Z","pushed_at":"2016-03-13T17:25:48Z","git_url":"git://github.com/Ogeon/palette.git","ssh_url":"git@github.com:Ogeon/palette.git","clone_url":"https://github.com/Ogeon/palette.git","svn_url":"https://github.com/Ogeon/palette","homepage":null,"size":1490,"stargazers_count":49,"watchers_count":49,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":12,"forks":2,"open_issues":12,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ogeon/palette/pulls/60"},"html":{"href":"https://github.com/Ogeon/palette/pull/60"},"issue":{"href":"https://api.github.com/repos/Ogeon/palette/issues/60"},"comments":{"href":"https://api.github.com/repos/Ogeon/palette/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/Ogeon/palette/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/Ogeon/palette/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ogeon/palette/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/Ogeon/palette/statuses/50b813a0710b0c81dfc8169628e10751e58cca5c"}}}}