{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/html/issues/299","repository_url":"https://api.github.com/repos/whatwg/html","labels_url":"https://api.github.com/repos/whatwg/html/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/html/issues/299/comments","events_url":"https://api.github.com/repos/whatwg/html/issues/299/events","html_url":"https://github.com/whatwg/html/issues/299","id":114196353,"number":299,"title":"Allow 2dcontexts to use deeper color buffers","user":{"login":"grorg","id":47596,"avatar_url":"https://avatars.githubusercontent.com/u/47596?v=3","gravatar_id":"","url":"https://api.github.com/users/grorg","html_url":"https://github.com/grorg","followers_url":"https://api.github.com/users/grorg/followers","following_url":"https://api.github.com/users/grorg/following{/other_user}","gists_url":"https://api.github.com/users/grorg/gists{/gist_id}","starred_url":"https://api.github.com/users/grorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grorg/subscriptions","organizations_url":"https://api.github.com/users/grorg/orgs","repos_url":"https://api.github.com/users/grorg/repos","events_url":"https://api.github.com/users/grorg/events{/privacy}","received_events_url":"https://api.github.com/users/grorg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/whatwg/html/labels/addition/proposal","name":"addition/proposal","color":"d4c5f9"},{"url":"https://api.github.com/repos/whatwg/html/labels/topic:%20canvas","name":"topic: canvas","color":"009800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":72,"created_at":"2015-10-30T04:10:38Z","updated_at":"2016-07-02T06:37:57Z","closed_at":null,"body":"It is now common to come across displays that support more than 8 bits per channel. HTML Image elements can use these wider-gamut displays by embedding a color profile in the resource. The CSS Working Group is adding a way to specify the profile used in a color definition, and ensuring that colors are not clipped to 0-255.\r\n\r\nThat leaves Canvas objects. We need at least a few things in order to use better colors in canvas:\r\n\r\n1. When calling getContext(\"2d\", options) we need to specify in the options that we want a deeper backing store. This could be done a few ways (a boolean indicating 10bpp, explicitly saying the depth, or some keywords).\r\n\r\n2. A way to ask an existing canvas object (or the context) how deep its backing store is.\r\n\r\n3. Alternative forms of getImageData and putImageData that are not restricted to 0-255 bytes. For example, we might need a ImageDataFloat that uses floats in the 0-1 range, and get/setImageDataFloat methods.\r\n\r\nAll existing methods that take images or ImageData would still keep the existing behaviour. That is, if you create a deep canvas and putImageData into it, that data is assumed to be in sRGB."},"comment":{"url":"https://api.github.com/repos/whatwg/html/issues/comments/230087086","html_url":"https://github.com/whatwg/html/issues/299#issuecomment-230087086","issue_url":"https://api.github.com/repos/whatwg/html/issues/299","id":230087086,"user":{"login":"RenaKunisaki","id":1185585,"avatar_url":"https://avatars.githubusercontent.com/u/1185585?v=3","gravatar_id":"","url":"https://api.github.com/users/RenaKunisaki","html_url":"https://github.com/RenaKunisaki","followers_url":"https://api.github.com/users/RenaKunisaki/followers","following_url":"https://api.github.com/users/RenaKunisaki/following{/other_user}","gists_url":"https://api.github.com/users/RenaKunisaki/gists{/gist_id}","starred_url":"https://api.github.com/users/RenaKunisaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RenaKunisaki/subscriptions","organizations_url":"https://api.github.com/users/RenaKunisaki/orgs","repos_url":"https://api.github.com/users/RenaKunisaki/repos","events_url":"https://api.github.com/users/RenaKunisaki/events{/privacy}","received_events_url":"https://api.github.com/users/RenaKunisaki/received_events","type":"User","site_admin":false},"created_at":"2016-07-02T06:37:57Z","updated_at":"2016-07-02T06:37:57Z","body":"If you're not sticking to just sRGB, why stick to the arbitrary 0-255 range, instead of 0-1? I think that would be much more intuitive."}}
{"actor":{"display_login":"RenaKunisaki"}}