{"action":"created","comment":{"url":"https://api.github.com/repos/lagora/zla/pulls/comments/52952086","id":52952086,"diff_hunk":"@@ -89,36 +98,40 @@ var zla = function (options) {\n     if ('RGB' === opts.format && !opts.data.join().match(/(,?(\\d{1,3}))+/i)) {\n       throw new Error('invalid RGB value found amongst data');\n     }\n+    };\n+    this.mkPalette = function (opts) {\n+      if (this.debug || this.verbose) {\n+        console.info('mkPalette');\n+      }\n \n-    if (this.debug || this.verbose) {\n-      console.info('data are ok, processing');\n-    }\n+      this._checkMkPalette(opts);\n \n-    if ('HEX' === opts.format) {\n       if (this.debug || this.verbose) {\n-        console.info('converting from HEX to RGB');\n-      }\n-      var rgbValues = [];\n-      opts.data.map(function (value) {\n-        value = 0 === value.indexOf('#') ? value.substr(1) : value;\n-        rgbValues.push(parseInt(value.substr(0, 2), 16));\n-        rgbValues.push(parseInt(value.substr(2, 2), 16));\n-        rgbValues.push(parseInt(value.substr(4, 2), 16));\n-      });\n-      opts.data = rgbValues;\n-      opts.format = 'RGB';\n-    }\n+        console.info('data are ok, processing');","path":"src/zla.js","position":73,"original_position":73,"commit_id":"5f62786e5af2fc9d621a479aacef8842101542d1","original_commit_id":"5f62786e5af2fc9d621a479aacef8842101542d1","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'console' is not defined.","created_at":"2016-02-15T23:08:32Z","updated_at":"2016-02-15T23:08:32Z","html_url":"https://github.com/lagora/zla/pull/6#discussion_r52952086","pull_request_url":"https://api.github.com/repos/lagora/zla/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/lagora/zla/pulls/comments/52952086"},"html":{"href":"https://github.com/lagora/zla/pull/6#discussion_r52952086"},"pull_request":{"href":"https://api.github.com/repos/lagora/zla/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/lagora/zla/pulls/6","id":59423131,"html_url":"https://github.com/lagora/zla/pull/6","diff_url":"https://github.com/lagora/zla/pull/6.diff","patch_url":"https://github.com/lagora/zla/pull/6.patch","issue_url":"https://api.github.com/repos/lagora/zla/issues/6","number":6,"state":"open","locked":false,"title":"splitting zla to ColorUtils","user":{"login":"lagora","id":1552901,"avatar_url":"https://avatars.githubusercontent.com/u/1552901?v=3","gravatar_id":"","url":"https://api.github.com/users/lagora","html_url":"https://github.com/lagora","followers_url":"https://api.github.com/users/lagora/followers","following_url":"https://api.github.com/users/lagora/following{/other_user}","gists_url":"https://api.github.com/users/lagora/gists{/gist_id}","starred_url":"https://api.github.com/users/lagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lagora/subscriptions","organizations_url":"https://api.github.com/users/lagora/orgs","repos_url":"https://api.github.com/users/lagora/repos","events_url":"https://api.github.com/users/lagora/events{/privacy}","received_events_url":"https://api.github.com/users/lagora/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-15T22:56:46Z","updated_at":"2016-02-15T23:08:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b182150587c8687559b053c2fb2267c0c33b43e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lagora/zla/pulls/6/commits","review_comments_url":"https://api.github.com/repos/lagora/zla/pulls/6/comments","review_comment_url":"https://api.github.com/repos/lagora/zla/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lagora/zla/issues/6/comments","statuses_url":"https://api.github.com/repos/lagora/zla/statuses/5f62786e5af2fc9d621a479aacef8842101542d1","head":{"label":"lagora:dev","ref":"dev","sha":"5f62786e5af2fc9d621a479aacef8842101542d1","user":{"login":"lagora","id":1552901,"avatar_url":"https://avatars.githubusercontent.com/u/1552901?v=3","gravatar_id":"","url":"https://api.github.com/users/lagora","html_url":"https://github.com/lagora","followers_url":"https://api.github.com/users/lagora/followers","following_url":"https://api.github.com/users/lagora/following{/other_user}","gists_url":"https://api.github.com/users/lagora/gists{/gist_id}","starred_url":"https://api.github.com/users/lagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lagora/subscriptions","organizations_url":"https://api.github.com/users/lagora/orgs","repos_url":"https://api.github.com/users/lagora/repos","events_url":"https://api.github.com/users/lagora/events{/privacy}","received_events_url":"https://api.github.com/users/lagora/received_events","type":"User","site_admin":false},"repo":{"id":51260599,"name":"zla","full_name":"lagora/zla","owner":{"login":"lagora","id":1552901,"avatar_url":"https://avatars.githubusercontent.com/u/1552901?v=3","gravatar_id":"","url":"https://api.github.com/users/lagora","html_url":"https://github.com/lagora","followers_url":"https://api.github.com/users/lagora/followers","following_url":"https://api.github.com/users/lagora/following{/other_user}","gists_url":"https://api.github.com/users/lagora/gists{/gist_id}","starred_url":"https://api.github.com/users/lagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lagora/subscriptions","organizations_url":"https://api.github.com/users/lagora/orgs","repos_url":"https://api.github.com/users/lagora/repos","events_url":"https://api.github.com/users/lagora/events{/privacy}","received_events_url":"https://api.github.com/users/lagora/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lagora/zla","description":"","fork":false,"url":"https://api.github.com/repos/lagora/zla","forks_url":"https://api.github.com/repos/lagora/zla/forks","keys_url":"https://api.github.com/repos/lagora/zla/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lagora/zla/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lagora/zla/teams","hooks_url":"https://api.github.com/repos/lagora/zla/hooks","issue_events_url":"https://api.github.com/repos/lagora/zla/issues/events{/number}","events_url":"https://api.github.com/repos/lagora/zla/events","assignees_url":"https://api.github.com/repos/lagora/zla/assignees{/user}","branches_url":"https://api.github.com/repos/lagora/zla/branches{/branch}","tags_url":"https://api.github.com/repos/lagora/zla/tags","blobs_url":"https://api.github.com/repos/lagora/zla/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lagora/zla/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lagora/zla/git/refs{/sha}","trees_url":"https://api.github.com/repos/lagora/zla/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lagora/zla/statuses/{sha}","languages_url":"https://api.github.com/repos/lagora/zla/languages","stargazers_url":"https://api.github.com/repos/lagora/zla/stargazers","contributors_url":"https://api.github.com/repos/lagora/zla/contributors","subscribers_url":"https://api.github.com/repos/lagora/zla/subscribers","subscription_url":"https://api.github.com/repos/lagora/zla/subscription","commits_url":"https://api.github.com/repos/lagora/zla/commits{/sha}","git_commits_url":"https://api.github.com/repos/lagora/zla/git/commits{/sha}","comments_url":"https://api.github.com/repos/lagora/zla/comments{/number}","issue_comment_url":"https://api.github.com/repos/lagora/zla/issues/comments{/number}","contents_url":"https://api.github.com/repos/lagora/zla/contents/{+path}","compare_url":"https://api.github.com/repos/lagora/zla/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lagora/zla/merges","archive_url":"https://api.github.com/repos/lagora/zla/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lagora/zla/downloads","issues_url":"https://api.github.com/repos/lagora/zla/issues{/number}","pulls_url":"https://api.github.com/repos/lagora/zla/pulls{/number}","milestones_url":"https://api.github.com/repos/lagora/zla/milestones{/number}","notifications_url":"https://api.github.com/repos/lagora/zla/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lagora/zla/labels{/name}","releases_url":"https://api.github.com/repos/lagora/zla/releases{/id}","deployments_url":"https://api.github.com/repos/lagora/zla/deployments","created_at":"2016-02-07T18:57:29Z","updated_at":"2016-02-08T00:13:38Z","pushed_at":"2016-02-15T23:07:50Z","git_url":"git://github.com/lagora/zla.git","ssh_url":"git@github.com:lagora/zla.git","clone_url":"https://github.com/lagora/zla.git","svn_url":"https://github.com/lagora/zla","homepage":null,"size":30079,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"lagora:master","ref":"master","sha":"d837c3314e1e2bcced14a01a1baa1002f51d0db3","user":{"login":"lagora","id":1552901,"avatar_url":"https://avatars.githubusercontent.com/u/1552901?v=3","gravatar_id":"","url":"https://api.github.com/users/lagora","html_url":"https://github.com/lagora","followers_url":"https://api.github.com/users/lagora/followers","following_url":"https://api.github.com/users/lagora/following{/other_user}","gists_url":"https://api.github.com/users/lagora/gists{/gist_id}","starred_url":"https://api.github.com/users/lagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lagora/subscriptions","organizations_url":"https://api.github.com/users/lagora/orgs","repos_url":"https://api.github.com/users/lagora/repos","events_url":"https://api.github.com/users/lagora/events{/privacy}","received_events_url":"https://api.github.com/users/lagora/received_events","type":"User","site_admin":false},"repo":{"id":51260599,"name":"zla","full_name":"lagora/zla","owner":{"login":"lagora","id":1552901,"avatar_url":"https://avatars.githubusercontent.com/u/1552901?v=3","gravatar_id":"","url":"https://api.github.com/users/lagora","html_url":"https://github.com/lagora","followers_url":"https://api.github.com/users/lagora/followers","following_url":"https://api.github.com/users/lagora/following{/other_user}","gists_url":"https://api.github.com/users/lagora/gists{/gist_id}","starred_url":"https://api.github.com/users/lagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lagora/subscriptions","organizations_url":"https://api.github.com/users/lagora/orgs","repos_url":"https://api.github.com/users/lagora/repos","events_url":"https://api.github.com/users/lagora/events{/privacy}","received_events_url":"https://api.github.com/users/lagora/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lagora/zla","description":"","fork":false,"url":"https://api.github.com/repos/lagora/zla","forks_url":"https://api.github.com/repos/lagora/zla/forks","keys_url":"https://api.github.com/repos/lagora/zla/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lagora/zla/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lagora/zla/teams","hooks_url":"https://api.github.com/repos/lagora/zla/hooks","issue_events_url":"https://api.github.com/repos/lagora/zla/issues/events{/number}","events_url":"https://api.github.com/repos/lagora/zla/events","assignees_url":"https://api.github.com/repos/lagora/zla/assignees{/user}","branches_url":"https://api.github.com/repos/lagora/zla/branches{/branch}","tags_url":"https://api.github.com/repos/lagora/zla/tags","blobs_url":"https://api.github.com/repos/lagora/zla/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lagora/zla/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lagora/zla/git/refs{/sha}","trees_url":"https://api.github.com/repos/lagora/zla/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lagora/zla/statuses/{sha}","languages_url":"https://api.github.com/repos/lagora/zla/languages","stargazers_url":"https://api.github.com/repos/lagora/zla/stargazers","contributors_url":"https://api.github.com/repos/lagora/zla/contributors","subscribers_url":"https://api.github.com/repos/lagora/zla/subscribers","subscription_url":"https://api.github.com/repos/lagora/zla/subscription","commits_url":"https://api.github.com/repos/lagora/zla/commits{/sha}","git_commits_url":"https://api.github.com/repos/lagora/zla/git/commits{/sha}","comments_url":"https://api.github.com/repos/lagora/zla/comments{/number}","issue_comment_url":"https://api.github.com/repos/lagora/zla/issues/comments{/number}","contents_url":"https://api.github.com/repos/lagora/zla/contents/{+path}","compare_url":"https://api.github.com/repos/lagora/zla/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lagora/zla/merges","archive_url":"https://api.github.com/repos/lagora/zla/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lagora/zla/downloads","issues_url":"https://api.github.com/repos/lagora/zla/issues{/number}","pulls_url":"https://api.github.com/repos/lagora/zla/pulls{/number}","milestones_url":"https://api.github.com/repos/lagora/zla/milestones{/number}","notifications_url":"https://api.github.com/repos/lagora/zla/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lagora/zla/labels{/name}","releases_url":"https://api.github.com/repos/lagora/zla/releases{/id}","deployments_url":"https://api.github.com/repos/lagora/zla/deployments","created_at":"2016-02-07T18:57:29Z","updated_at":"2016-02-08T00:13:38Z","pushed_at":"2016-02-15T23:07:50Z","git_url":"git://github.com/lagora/zla.git","ssh_url":"git@github.com:lagora/zla.git","clone_url":"https://github.com/lagora/zla.git","svn_url":"https://github.com/lagora/zla","homepage":null,"size":30079,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lagora/zla/pulls/6"},"html":{"href":"https://github.com/lagora/zla/pull/6"},"issue":{"href":"https://api.github.com/repos/lagora/zla/issues/6"},"comments":{"href":"https://api.github.com/repos/lagora/zla/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/lagora/zla/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/lagora/zla/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lagora/zla/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/lagora/zla/statuses/5f62786e5af2fc9d621a479aacef8842101542d1"}}}}