{"action":"created","issue":{"url":"https://api.github.com/repos/ruuki/ColorFinder/issues/2","labels_url":"https://api.github.com/repos/ruuki/ColorFinder/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ruuki/ColorFinder/issues/2/comments","events_url":"https://api.github.com/repos/ruuki/ColorFinder/issues/2/events","html_url":"https://github.com/ruuki/ColorFinder/issues/2","id":68115696,"number":2,"title":"TODO: add preset configurations","user":{"login":"ruuki","id":1417500,"avatar_url":"https://avatars.githubusercontent.com/u/1417500?v=3","gravatar_id":"","url":"https://api.github.com/users/ruuki","html_url":"https://github.com/ruuki","followers_url":"https://api.github.com/users/ruuki/followers","following_url":"https://api.github.com/users/ruuki/following{/other_user}","gists_url":"https://api.github.com/users/ruuki/gists{/gist_id}","starred_url":"https://api.github.com/users/ruuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruuki/subscriptions","organizations_url":"https://api.github.com/users/ruuki/orgs","repos_url":"https://api.github.com/users/ruuki/repos","events_url":"https://api.github.com/users/ruuki/events{/privacy}","received_events_url":"https://api.github.com/users/ruuki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-13T14:40:42Z","updated_at":"2015-10-01T08:13:28Z","closed_at":null,"body":"add pre-set configs to find bright-dark colors"},"comment":{"url":"https://api.github.com/repos/ruuki/ColorFinder/issues/comments/144651984","html_url":"https://github.com/ruuki/ColorFinder/issues/2#issuecomment-144651984","issue_url":"https://api.github.com/repos/ruuki/ColorFinder/issues/2","id":144651984,"user":{"login":"Kowaio","id":7236237,"avatar_url":"https://avatars.githubusercontent.com/u/7236237?v=3","gravatar_id":"","url":"https://api.github.com/users/Kowaio","html_url":"https://github.com/Kowaio","followers_url":"https://api.github.com/users/Kowaio/followers","following_url":"https://api.github.com/users/Kowaio/following{/other_user}","gists_url":"https://api.github.com/users/Kowaio/gists{/gist_id}","starred_url":"https://api.github.com/users/Kowaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kowaio/subscriptions","organizations_url":"https://api.github.com/users/Kowaio/orgs","repos_url":"https://api.github.com/users/Kowaio/repos","events_url":"https://api.github.com/users/Kowaio/events{/privacy}","received_events_url":"https://api.github.com/users/Kowaio/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T08:13:28Z","updated_at":"2015-10-01T08:13:28Z","body":"Hello @ruuki \r\n\r\nThanks for your answer.\r\n\r\nOk that's too bad. I tried to add the formula explain here, the favorHue:\r\n\r\n>function favorHue(r,g,b) {\r\n  return (Math.abs(r-g)*Math.abs(r-g) + Math.abs(r-b)*Math.abs(r-b) + Math.abs(g-b)*Math.abs(g-b))/65535*50+1;\r\n}\r\n\r\nby adding a \"weight\" variable in each point and by returning the most weighted point of the selected cluster at the end of your algorithm (tempCluster) but I'm still not satisfied with the result. If you have any idea it would be great and I think a great addition to be as close as the javascript version.\r\n\r\nThanks again!\r\n"}}