{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/pulls/comments/193428238","pull_request_review_id":126394299,"id":193428238,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzQyODIzOA==","diff_hunk":"@@ -0,0 +1,74 @@\n+'use strict';\n+\n+var CLOUD_WIDTH = 420;\n+var CLOUD_HEIGHT = 270;\n+var CLOUD_X = 100;\n+var CLOUD_Y = 10;\n+var CLOUD_GAP = 10;\n+var TEXT_HEIGHT = 16;\n+var TEXT_FONT = '16px MONO';\n+var TEXT_GAP = 10;\n+var TEXT_BOTTOM = 'bottom';\n+var TEXT_TOP = 'top';\n+var FIRST_MESSAGE_PHRASE = 'Ура вы победили!';\n+var SECOND_MESSAGE_PHRASE = 'Список результатов:';\n+var BAR_WIDTH = 40;\n+var BAR_HEIGHT = 150;\n+var BAR_GAP = 50;\n+var LAST_PLAYER = 'Вы';\n+var BLACK_COLOR = '#000';\n+var WHITE_COLOR = '#fff';\n+\n+var renderCloud = function (ctx, x, y, color) {\n+  ctx.fillStyle = color;\n+  ctx.fillRect(x, y, CLOUD_WIDTH, CLOUD_HEIGHT);\n+};\n+\n+var getMaxElement = function (arr) {\n+  var maxElement = arr[0];\n+\n+  for (var i = 0; i < arr.length; i++) {\n+    if (arr[i] > maxElement) {\n+      maxElement = arr[i];\n+    }\n+  }\n+\n+  return maxElement;\n+};\n+\n+function precise(x) {\n+  return Number.parseFloat(x).toPrecision(1);\n+}\n+\n+var getRandomColor = function () {\n+  return 'rgba(0, 0, 250, ' + precise(Math.random()) + ')';\n+};\n+\n+var writeColoredText = function (ctx, color, font, position, text, x, y) {","path":"js/stat.js","position":47,"original_position":47,"commit_id":"c7de35896e47ee276295e285dbf1502d84868bbf","original_commit_id":"c7de35896e47ee276295e285dbf1502d84868bbf","user":{"login":"archangel-irk","id":1079509,"node_id":"MDQ6VXNlcjEwNzk1MDk=","avatar_url":"https://avatars3.githubusercontent.com/u/1079509?v=4","gravatar_id":"","url":"https://api.github.com/users/archangel-irk","html_url":"https://github.com/archangel-irk","followers_url":"https://api.github.com/users/archangel-irk/followers","following_url":"https://api.github.com/users/archangel-irk/following{/other_user}","gists_url":"https://api.github.com/users/archangel-irk/gists{/gist_id}","starred_url":"https://api.github.com/users/archangel-irk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archangel-irk/subscriptions","organizations_url":"https://api.github.com/users/archangel-irk/orgs","repos_url":"https://api.github.com/users/archangel-irk/repos","events_url":"https://api.github.com/users/archangel-irk/events{/privacy}","received_events_url":"https://api.github.com/users/archangel-irk/received_events","type":"User","site_admin":false},"body":"Параметр position лучше переименовать в baseline","created_at":"2018-06-06T14:21:52Z","updated_at":"2018-06-06T14:26:46Z","html_url":"https://github.com/htmlacademy-javascript/224497-code-and-magick/pull/2#discussion_r193428238","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/pulls/comments/193428238"},"html":{"href":"https://github.com/htmlacademy-javascript/224497-code-and-magick/pull/2#discussion_r193428238"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/pulls/2"}},"in_reply_to_id":193428053},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/pulls/2","id":192677691,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyNjc3Njkx","html_url":"https://github.com/htmlacademy-javascript/224497-code-and-magick/pull/2","diff_url":"https://github.com/htmlacademy-javascript/224497-code-and-magick/pull/2.diff","patch_url":"https://github.com/htmlacademy-javascript/224497-code-and-magick/pull/2.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/issues/2","number":2,"state":"open","locked":false,"title":"Учебный проект «Холст»","user":{"login":"SempreMai","id":22892048,"node_id":"MDQ6VXNlcjIyODkyMDQ4","avatar_url":"https://avatars3.githubusercontent.com/u/22892048?v=4","gravatar_id":"","url":"https://api.github.com/users/SempreMai","html_url":"https://github.com/SempreMai","followers_url":"https://api.github.com/users/SempreMai/followers","following_url":"https://api.github.com/users/SempreMai/following{/other_user}","gists_url":"https://api.github.com/users/SempreMai/gists{/gist_id}","starred_url":"https://api.github.com/users/SempreMai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SempreMai/subscriptions","organizations_url":"https://api.github.com/users/SempreMai/orgs","repos_url":"https://api.github.com/users/SempreMai/repos","events_url":"https://api.github.com/users/SempreMai/events{/privacy}","received_events_url":"https://api.github.com/users/SempreMai/received_events","type":"User","site_admin":false},"body":"Pull-request from module2-task1\n\n---\n:mortar_board: [Учебный проект «Холст»](https://up.htmlacademy.ru/javascript/14/user/224497/tasks/10)\n\n:boom: https://htmlacademy-javascript.github.io/224497-code-and-magick/2/","created_at":"2018-06-05T11:40:08Z","updated_at":"2018-06-06T14:26:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"35dbc9d96718c3c6e9079e0f0304ffe92521179e","assignee":{"login":"archangel-irk","id":1079509,"node_id":"MDQ6VXNlcjEwNzk1MDk=","avatar_url":"https://avatars3.githubusercontent.com/u/1079509?v=4","gravatar_id":"","url":"https://api.github.com/users/archangel-irk","html_url":"https://github.com/archangel-irk","followers_url":"https://api.github.com/users/archangel-irk/followers","following_url":"https://api.github.com/users/archangel-irk/following{/other_user}","gists_url":"https://api.github.com/users/archangel-irk/gists{/gist_id}","starred_url":"https://api.github.com/users/archangel-irk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archangel-irk/subscriptions","organizations_url":"https://api.github.com/users/archangel-irk/orgs","repos_url":"https://api.github.com/users/archangel-irk/repos","events_url":"https://api.github.com/users/archangel-irk/events{/privacy}","received_events_url":"https://api.github.com/users/archangel-irk/received_events","type":"User","site_admin":false},"assignees":[{"login":"archangel-irk","id":1079509,"node_id":"MDQ6VXNlcjEwNzk1MDk=","avatar_url":"https://avatars3.githubusercontent.com/u/1079509?v=4","gravatar_id":"","url":"https://api.github.com/users/archangel-irk","html_url":"https://github.com/archangel-irk","followers_url":"https://api.github.com/users/archangel-irk/followers","following_url":"https://api.github.com/users/archangel-irk/following{/other_user}","gists_url":"https://api.github.com/users/archangel-irk/gists{/gist_id}","starred_url":"https://api.github.com/users/archangel-irk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archangel-irk/subscriptions","organizations_url":"https://api.github.com/users/archangel-irk/orgs","repos_url":"https://api.github.com/users/archangel-irk/repos","events_url":"https://api.github.com/users/archangel-irk/events{/privacy}","received_events_url":"https://api.github.com/users/archangel-irk/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/pulls/2/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/pulls/2/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/issues/2/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/statuses/c7de35896e47ee276295e285dbf1502d84868bbf","head":{"label":"SempreMai:module2-task1","ref":"module2-task1","sha":"c7de35896e47ee276295e285dbf1502d84868bbf","user":{"login":"SempreMai","id":22892048,"node_id":"MDQ6VXNlcjIyODkyMDQ4","avatar_url":"https://avatars3.githubusercontent.com/u/22892048?v=4","gravatar_id":"","url":"https://api.github.com/users/SempreMai","html_url":"https://github.com/SempreMai","followers_url":"https://api.github.com/users/SempreMai/followers","following_url":"https://api.github.com/users/SempreMai/following{/other_user}","gists_url":"https://api.github.com/users/SempreMai/gists{/gist_id}","starred_url":"https://api.github.com/users/SempreMai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SempreMai/subscriptions","organizations_url":"https://api.github.com/users/SempreMai/orgs","repos_url":"https://api.github.com/users/SempreMai/repos","events_url":"https://api.github.com/users/SempreMai/events{/privacy}","received_events_url":"https://api.github.com/users/SempreMai/received_events","type":"User","site_admin":false},"repo":{"id":135584954,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU1ODQ5NTQ=","name":"224497-code-and-magick","full_name":"SempreMai/224497-code-and-magick","owner":{"login":"SempreMai","id":22892048,"node_id":"MDQ6VXNlcjIyODkyMDQ4","avatar_url":"https://avatars3.githubusercontent.com/u/22892048?v=4","gravatar_id":"","url":"https://api.github.com/users/SempreMai","html_url":"https://github.com/SempreMai","followers_url":"https://api.github.com/users/SempreMai/followers","following_url":"https://api.github.com/users/SempreMai/following{/other_user}","gists_url":"https://api.github.com/users/SempreMai/gists{/gist_id}","starred_url":"https://api.github.com/users/SempreMai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SempreMai/subscriptions","organizations_url":"https://api.github.com/users/SempreMai/orgs","repos_url":"https://api.github.com/users/SempreMai/repos","events_url":"https://api.github.com/users/SempreMai/events{/privacy}","received_events_url":"https://api.github.com/users/SempreMai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SempreMai/224497-code-and-magick","description":"Liubov Kudrina","fork":true,"url":"https://api.github.com/repos/SempreMai/224497-code-and-magick","forks_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/forks","keys_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/teams","hooks_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/events","assignees_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/tags","blobs_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/subscription","commits_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/merges","archive_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/downloads","issues_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/SempreMai/224497-code-and-magick/deployments","created_at":"2018-05-31T13:07:08Z","updated_at":"2018-06-04T14:36:24Z","pushed_at":"2018-06-06T14:07:03Z","git_url":"git://github.com/SempreMai/224497-code-and-magick.git","ssh_url":"git@github.com:SempreMai/224497-code-and-magick.git","clone_url":"https://github.com/SempreMai/224497-code-and-magick.git","svn_url":"https://github.com/SempreMai/224497-code-and-magick","homepage":null,"size":1104,"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":"f8ab1070b57947f6defc7a9e9daa6559382b1a1f","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":135418775,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU0MTg3NzU=","name":"224497-code-and-magick","full_name":"htmlacademy-javascript/224497-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/224497-code-and-magick","description":"Liubov Kudrina","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick","forks_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/deployments","created_at":"2018-05-30T09:18:16Z","updated_at":"2018-06-04T14:19:06Z","pushed_at":"2018-06-06T14:10:04Z","git_url":"git://github.com/htmlacademy-javascript/224497-code-and-magick.git","ssh_url":"git@github.com:htmlacademy-javascript/224497-code-and-magick.git","clone_url":"https://github.com/htmlacademy-javascript/224497-code-and-magick.git","svn_url":"https://github.com/htmlacademy-javascript/224497-code-and-magick","homepage":"https://github.com/SempreMai/224497-code-and-magick","size":1108,"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/224497-code-and-magick/pulls/2"},"html":{"href":"https://github.com/htmlacademy-javascript/224497-code-and-magick/pull/2"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/issues/2"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/224497-code-and-magick/statuses/c7de35896e47ee276295e285dbf1502d84868bbf"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"archangel-irk"}}