{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/pulls/comments/192960244","pull_request_review_id":125834837,"id":192960244,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5Mjk2MDI0NA==","diff_hunk":"@@ -0,0 +1,89 @@\n+'use strict';\n+\n+var CLOUD_HEIGHT = 270;\n+var CLOUD_X = 100;\n+var CLOUD_Y = 10;\n+var COLOR_BLACK = '#000000';\n+var GAP = 10;\n+var TEXT_WIDTH = 50;\n+var BAR_WIDTH = 40;\n+var barHeight = 0;\n+var barWidth = CLOUD_X + TEXT_WIDTH;\n+\n+var getColors = function () {\n+  // решил менять прозрачность таким образом\n+  var val = (Math.round(Math.random() * 10)) / 10;\n+  if (val === 0) {\n+    val = 0.1;\n+  }\n+  return 'rgba(0, 0, 255, ' + val + ')';\n+};\n+\n+// функция для получения максимального времени\n+var getMaxTime = function (arr) {\n+  return Math.max.apply(null, arr);\n+};\n+\n+var getCloud = function (ctx, x, y, color) {\n+  // массив с координатами по оси X\n+  var arrX = [x, 400, 520, 500, 520, 220, 100, 120, x];","path":"js/stat.js","position":29,"original_position":29,"commit_id":"26e2a2c4923bc50952a193a04e2cd8553c31edd1","original_commit_id":"26e2a2c4923bc50952a193a04e2cd8553c31edd1","user":{"login":"kirvesp","id":9395956,"node_id":"MDQ6VXNlcjkzOTU5NTY=","avatar_url":"https://avatars2.githubusercontent.com/u/9395956?v=4","gravatar_id":"","url":"https://api.github.com/users/kirvesp","html_url":"https://github.com/kirvesp","followers_url":"https://api.github.com/users/kirvesp/followers","following_url":"https://api.github.com/users/kirvesp/following{/other_user}","gists_url":"https://api.github.com/users/kirvesp/gists{/gist_id}","starred_url":"https://api.github.com/users/kirvesp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirvesp/subscriptions","organizations_url":"https://api.github.com/users/kirvesp/orgs","repos_url":"https://api.github.com/users/kirvesp/repos","events_url":"https://api.github.com/users/kirvesp/events{/privacy}","received_events_url":"https://api.github.com/users/kirvesp/received_events","type":"User","site_admin":false},"body":"можно сделать один массив вида: ``` var cords = [{x: x, y: y}]```","created_at":"2018-06-05T06:32:39Z","updated_at":"2018-06-05T06:36:49Z","html_url":"https://github.com/htmlacademy-javascript/106372-code-and-magick/pull/2#discussion_r192960244","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/pulls/comments/192960244"},"html":{"href":"https://github.com/htmlacademy-javascript/106372-code-and-magick/pull/2#discussion_r192960244"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/pulls/2","id":192330589,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyMzMwNTg5","html_url":"https://github.com/htmlacademy-javascript/106372-code-and-magick/pull/2","diff_url":"https://github.com/htmlacademy-javascript/106372-code-and-magick/pull/2.diff","patch_url":"https://github.com/htmlacademy-javascript/106372-code-and-magick/pull/2.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/issues/2","number":2,"state":"open","locked":false,"title":"Учебный проект «Холст»","user":{"login":"RylovALXRV","id":13884366,"node_id":"MDQ6VXNlcjEzODg0MzY2","avatar_url":"https://avatars0.githubusercontent.com/u/13884366?v=4","gravatar_id":"","url":"https://api.github.com/users/RylovALXRV","html_url":"https://github.com/RylovALXRV","followers_url":"https://api.github.com/users/RylovALXRV/followers","following_url":"https://api.github.com/users/RylovALXRV/following{/other_user}","gists_url":"https://api.github.com/users/RylovALXRV/gists{/gist_id}","starred_url":"https://api.github.com/users/RylovALXRV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RylovALXRV/subscriptions","organizations_url":"https://api.github.com/users/RylovALXRV/orgs","repos_url":"https://api.github.com/users/RylovALXRV/repos","events_url":"https://api.github.com/users/RylovALXRV/events{/privacy}","received_events_url":"https://api.github.com/users/RylovALXRV/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Учебный проект «Холст»](https://up.htmlacademy.ru/javascript/14/user/106372/tasks/10)\n\n:boom: https://htmlacademy-javascript.github.io/106372-code-and-magick/2/","created_at":"2018-06-04T08:20:58Z","updated_at":"2018-06-05T06:36:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e91b60fa0be8cd74e4482312226ae42e2bd227c","assignee":{"login":"kirvesp","id":9395956,"node_id":"MDQ6VXNlcjkzOTU5NTY=","avatar_url":"https://avatars2.githubusercontent.com/u/9395956?v=4","gravatar_id":"","url":"https://api.github.com/users/kirvesp","html_url":"https://github.com/kirvesp","followers_url":"https://api.github.com/users/kirvesp/followers","following_url":"https://api.github.com/users/kirvesp/following{/other_user}","gists_url":"https://api.github.com/users/kirvesp/gists{/gist_id}","starred_url":"https://api.github.com/users/kirvesp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirvesp/subscriptions","organizations_url":"https://api.github.com/users/kirvesp/orgs","repos_url":"https://api.github.com/users/kirvesp/repos","events_url":"https://api.github.com/users/kirvesp/events{/privacy}","received_events_url":"https://api.github.com/users/kirvesp/received_events","type":"User","site_admin":false},"assignees":[{"login":"kirvesp","id":9395956,"node_id":"MDQ6VXNlcjkzOTU5NTY=","avatar_url":"https://avatars2.githubusercontent.com/u/9395956?v=4","gravatar_id":"","url":"https://api.github.com/users/kirvesp","html_url":"https://github.com/kirvesp","followers_url":"https://api.github.com/users/kirvesp/followers","following_url":"https://api.github.com/users/kirvesp/following{/other_user}","gists_url":"https://api.github.com/users/kirvesp/gists{/gist_id}","starred_url":"https://api.github.com/users/kirvesp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirvesp/subscriptions","organizations_url":"https://api.github.com/users/kirvesp/orgs","repos_url":"https://api.github.com/users/kirvesp/repos","events_url":"https://api.github.com/users/kirvesp/events{/privacy}","received_events_url":"https://api.github.com/users/kirvesp/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/pulls/2/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/pulls/2/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/issues/2/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/statuses/26e2a2c4923bc50952a193a04e2cd8553c31edd1","head":{"label":"RylovALXRV:module2-task1","ref":"module2-task1","sha":"26e2a2c4923bc50952a193a04e2cd8553c31edd1","user":{"login":"RylovALXRV","id":13884366,"node_id":"MDQ6VXNlcjEzODg0MzY2","avatar_url":"https://avatars0.githubusercontent.com/u/13884366?v=4","gravatar_id":"","url":"https://api.github.com/users/RylovALXRV","html_url":"https://github.com/RylovALXRV","followers_url":"https://api.github.com/users/RylovALXRV/followers","following_url":"https://api.github.com/users/RylovALXRV/following{/other_user}","gists_url":"https://api.github.com/users/RylovALXRV/gists{/gist_id}","starred_url":"https://api.github.com/users/RylovALXRV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RylovALXRV/subscriptions","organizations_url":"https://api.github.com/users/RylovALXRV/orgs","repos_url":"https://api.github.com/users/RylovALXRV/repos","events_url":"https://api.github.com/users/RylovALXRV/events{/privacy}","received_events_url":"https://api.github.com/users/RylovALXRV/received_events","type":"User","site_admin":false},"repo":{"id":135577078,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU1NzcwNzg=","name":"106372-code-and-magick","full_name":"RylovALXRV/106372-code-and-magick","owner":{"login":"RylovALXRV","id":13884366,"node_id":"MDQ6VXNlcjEzODg0MzY2","avatar_url":"https://avatars0.githubusercontent.com/u/13884366?v=4","gravatar_id":"","url":"https://api.github.com/users/RylovALXRV","html_url":"https://github.com/RylovALXRV","followers_url":"https://api.github.com/users/RylovALXRV/followers","following_url":"https://api.github.com/users/RylovALXRV/following{/other_user}","gists_url":"https://api.github.com/users/RylovALXRV/gists{/gist_id}","starred_url":"https://api.github.com/users/RylovALXRV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RylovALXRV/subscriptions","organizations_url":"https://api.github.com/users/RylovALXRV/orgs","repos_url":"https://api.github.com/users/RylovALXRV/repos","events_url":"https://api.github.com/users/RylovALXRV/events{/privacy}","received_events_url":"https://api.github.com/users/RylovALXRV/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RylovALXRV/106372-code-and-magick","description":"Алексей Рылов","fork":true,"url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick","forks_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/forks","keys_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/teams","hooks_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/events","assignees_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/tags","blobs_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/subscription","commits_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/merges","archive_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/downloads","issues_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/RylovALXRV/106372-code-and-magick/deployments","created_at":"2018-05-31T11:53:09Z","updated_at":"2018-06-03T10:34:15Z","pushed_at":"2018-06-04T15:44:52Z","git_url":"git://github.com/RylovALXRV/106372-code-and-magick.git","ssh_url":"git@github.com:RylovALXRV/106372-code-and-magick.git","clone_url":"https://github.com/RylovALXRV/106372-code-and-magick.git","svn_url":"https://github.com/RylovALXRV/106372-code-and-magick","homepage":null,"size":1083,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-javascript:master","ref":"master","sha":"fc6f126054f996a5f6f6e7f3a8764d172c41d951","user":{"login":"htmlacademy-javascript","id":14179712,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc5NzEy","avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"repo":{"id":135466415,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU0NjY0MTU=","name":"106372-code-and-magick","full_name":"htmlacademy-javascript/106372-code-and-magick","owner":{"login":"htmlacademy-javascript","id":14179712,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc5NzEy","avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-javascript/106372-code-and-magick","description":"Алексей Рылов","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick","forks_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/deployments","created_at":"2018-05-30T15:57:33Z","updated_at":"2018-06-01T03:34:50Z","pushed_at":"2018-06-05T06:30:34Z","git_url":"git://github.com/htmlacademy-javascript/106372-code-and-magick.git","ssh_url":"git@github.com:htmlacademy-javascript/106372-code-and-magick.git","clone_url":"https://github.com/htmlacademy-javascript/106372-code-and-magick.git","svn_url":"https://github.com/htmlacademy-javascript/106372-code-and-magick","homepage":"https://github.com/RylovALXRV/106372-code-and-magick","size":1081,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/pulls/2"},"html":{"href":"https://github.com/htmlacademy-javascript/106372-code-and-magick/pull/2"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/issues/2"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/106372-code-and-magick/statuses/26e2a2c4923bc50952a193a04e2cd8553c31edd1"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kirvesp"}}