{"action":"created","issue":{"url":"https://api.github.com/repos/onury/invert-color/issues/13","repository_url":"https://api.github.com/repos/onury/invert-color","labels_url":"https://api.github.com/repos/onury/invert-color/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/onury/invert-color/issues/13/comments","events_url":"https://api.github.com/repos/onury/invert-color/issues/13/events","html_url":"https://github.com/onury/invert-color/issues/13","id":351825352,"node_id":"MDU6SXNzdWUzNTE4MjUzNTI=","number":13,"title":"So does it invert brightness or only hue?","user":{"login":"rugk","id":11966684,"node_id":"MDQ6VXNlcjExOTY2Njg0","avatar_url":"https://avatars3.githubusercontent.com/u/11966684?v=4","gravatar_id":"","url":"https://api.github.com/users/rugk","html_url":"https://github.com/rugk","followers_url":"https://api.github.com/users/rugk/followers","following_url":"https://api.github.com/users/rugk/following{/other_user}","gists_url":"https://api.github.com/users/rugk/gists{/gist_id}","starred_url":"https://api.github.com/users/rugk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rugk/subscriptions","organizations_url":"https://api.github.com/users/rugk/orgs","repos_url":"https://api.github.com/users/rugk/repos","events_url":"https://api.github.com/users/rugk/events{/privacy}","received_events_url":"https://api.github.com/users/rugk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-18T14:37:48Z","updated_at":"2018-08-19T19:26:05Z","closed_at":null,"author_association":"NONE","body":"Your lib looks nice, but actually I am still not sure whether it inverts in the way I need it.\r\n\r\nSo here is the back story: In short, I need it [for my add-on](https://github.com/rugk/offline-qr-code), which wants to get the best _contrasting_ color for a given color, as it can otherwise not be scanned by QR code scanners.\r\nAs such [the first implementation](https://github.com/rugk/offline-qr-code/pull/86) turned out to [have a little issue](https://github.com/rugk/offline-qr-code/issues/117) being that it inverts the brightness, too.\r\nI am still not really convinced whether this is good for my aim or not, but well...\r\nSeeing this only inverting the hue seems to be a little more complicated, so I stumbled upon your lib ([here](https://stackoverflow.com/questions/1664140/js-function-to-calculate-complementary-colour) of course).\r\n\r\nSo back to my questions:\r\n* So this is inverting only the hue, is not it?\r\n* Maybe, you may add the feature to also invert the brightness, too? Or is there no actual use case for that?\r\n* And may I be better off with using this lib and only the hue?\r\n\r\nGenerally my problem/use case of course would need [a very clever way to get the \"best\" contrast somehow](https://github.com/rugk/offline-qr-code/issues/92). If you have any tips/ideas, feel free to comment."},"comment":{"url":"https://api.github.com/repos/onury/invert-color/issues/comments/414149838","html_url":"https://github.com/onury/invert-color/issues/13#issuecomment-414149838","issue_url":"https://api.github.com/repos/onury/invert-color/issues/13","id":414149838,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDE0OTgzOA==","user":{"login":"rugk","id":11966684,"node_id":"MDQ6VXNlcjExOTY2Njg0","avatar_url":"https://avatars3.githubusercontent.com/u/11966684?v=4","gravatar_id":"","url":"https://api.github.com/users/rugk","html_url":"https://github.com/rugk","followers_url":"https://api.github.com/users/rugk/followers","following_url":"https://api.github.com/users/rugk/following{/other_user}","gists_url":"https://api.github.com/users/rugk/gists{/gist_id}","starred_url":"https://api.github.com/users/rugk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rugk/subscriptions","organizations_url":"https://api.github.com/users/rugk/orgs","repos_url":"https://api.github.com/users/rugk/repos","events_url":"https://api.github.com/users/rugk/events{/privacy}","received_events_url":"https://api.github.com/users/rugk/received_events","type":"User","site_admin":false},"created_at":"2018-08-19T19:26:05Z","updated_at":"2018-08-19T19:26:05Z","author_association":"NONE","body":"Well… my use case is:\r\n* provide a visually pleasing QR code display for the human user\r\n* provide a working QR code for the \"machine\"\r\n\r\nAs such, i cannot just convert it to b/w. :smile: \r\n"}}
{"actor":{"display_login":"rugk"}}