{"action":"created","comment":{"url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/pulls/comments/53566372","id":53566372,"diff_hunk":"@@ -19,25 +19,43 @@ int main()\n \tstd::vector<Colour> palette = getRainbow(maxIters);\n \n \tconst double minX = -2, maxX = 1, minY = -1.5, maxY = 1.5;\n-\n+\tint black = 0x000000, white = 0xFFFFFF;\n+\t\n \t// Generate the image\n-\tfor (int pixelY = 0; pixelY < image.height(); pixelY++)\n+\tfor (double pixelY = 0; pixelY < image.height(); pixelY++)\n \t{\n-\t\t// TODO: Map the y coordinate into the range minY to maxY\n-\t\t//double y0 =\n+\t\t// Map the y coordinate into the range minY to maxY\n+\t\tdouble y0 = (pixelY / image.height()) * (maxY - minY) + minY;","path":"PartB_Mandelbrot/Mandelbrot.cpp","position":14,"original_position":14,"commit_id":"85409179344758d2cc8f96a5e2af59ab45b1995f","original_commit_id":"85409179344758d2cc8f96a5e2af59ab45b1995f","user":{"login":"edpowley","id":4038033,"avatar_url":"https://avatars.githubusercontent.com/u/4038033?v=3","gravatar_id":"","url":"https://api.github.com/users/edpowley","html_url":"https://github.com/edpowley","followers_url":"https://api.github.com/users/edpowley/followers","following_url":"https://api.github.com/users/edpowley/following{/other_user}","gists_url":"https://api.github.com/users/edpowley/gists{/gist_id}","starred_url":"https://api.github.com/users/edpowley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edpowley/subscriptions","organizations_url":"https://api.github.com/users/edpowley/orgs","repos_url":"https://api.github.com/users/edpowley/repos","events_url":"https://api.github.com/users/edpowley/events{/privacy}","received_events_url":"https://api.github.com/users/edpowley/received_events","type":"User","site_admin":false},"body":"If `pixelY` were an `int`, you'd need to cast it to double here, e.g.\r\n```\r\ndouble y0 = (static_cast<double>(pixelY) / image.height()) * (maxY - minY) + minY;\r\n```","created_at":"2016-02-21T13:12:53Z","updated_at":"2016-02-21T13:12:53Z","html_url":"https://github.com/Falmouth-Games-Academy/comp110-worksheet-4/pull/6#discussion_r53566372","pull_request_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/pulls/comments/53566372"},"html":{"href":"https://github.com/Falmouth-Games-Academy/comp110-worksheet-4/pull/6#discussion_r53566372"},"pull_request":{"href":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/pulls/6","id":58919602,"html_url":"https://github.com/Falmouth-Games-Academy/comp110-worksheet-4/pull/6","diff_url":"https://github.com/Falmouth-Games-Academy/comp110-worksheet-4/pull/6.diff","patch_url":"https://github.com/Falmouth-Games-Academy/comp110-worksheet-4/pull/6.patch","issue_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/issues/6","number":6,"state":"open","locked":false,"title":"Formal submission for worksheet","user":{"login":"sw180283","id":14280015,"avatar_url":"https://avatars.githubusercontent.com/u/14280015?v=3","gravatar_id":"","url":"https://api.github.com/users/sw180283","html_url":"https://github.com/sw180283","followers_url":"https://api.github.com/users/sw180283/followers","following_url":"https://api.github.com/users/sw180283/following{/other_user}","gists_url":"https://api.github.com/users/sw180283/gists{/gist_id}","starred_url":"https://api.github.com/users/sw180283/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sw180283/subscriptions","organizations_url":"https://api.github.com/users/sw180283/orgs","repos_url":"https://api.github.com/users/sw180283/repos","events_url":"https://api.github.com/users/sw180283/events{/privacy}","received_events_url":"https://api.github.com/users/sw180283/received_events","type":"User","site_admin":false},"body":"There is an error with the hacking that doesn't find likeness.","created_at":"2016-02-10T16:56:19Z","updated_at":"2016-02-21T13:12:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c393a5b289da911128c2041953703ff5f4db48d2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/pulls/6/commits","review_comments_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/pulls/6/comments","review_comment_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/issues/6/comments","statuses_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/statuses/85409179344758d2cc8f96a5e2af59ab45b1995f","head":{"label":"sw180283:master","ref":"master","sha":"85409179344758d2cc8f96a5e2af59ab45b1995f","user":{"login":"sw180283","id":14280015,"avatar_url":"https://avatars.githubusercontent.com/u/14280015?v=3","gravatar_id":"","url":"https://api.github.com/users/sw180283","html_url":"https://github.com/sw180283","followers_url":"https://api.github.com/users/sw180283/followers","following_url":"https://api.github.com/users/sw180283/following{/other_user}","gists_url":"https://api.github.com/users/sw180283/gists{/gist_id}","starred_url":"https://api.github.com/users/sw180283/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sw180283/subscriptions","organizations_url":"https://api.github.com/users/sw180283/orgs","repos_url":"https://api.github.com/users/sw180283/repos","events_url":"https://api.github.com/users/sw180283/events{/privacy}","received_events_url":"https://api.github.com/users/sw180283/received_events","type":"User","site_admin":false},"repo":{"id":51260923,"name":"comp110-worksheet-4","full_name":"sw180283/comp110-worksheet-4","owner":{"login":"sw180283","id":14280015,"avatar_url":"https://avatars.githubusercontent.com/u/14280015?v=3","gravatar_id":"","url":"https://api.github.com/users/sw180283","html_url":"https://github.com/sw180283","followers_url":"https://api.github.com/users/sw180283/followers","following_url":"https://api.github.com/users/sw180283/following{/other_user}","gists_url":"https://api.github.com/users/sw180283/gists{/gist_id}","starred_url":"https://api.github.com/users/sw180283/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sw180283/subscriptions","organizations_url":"https://api.github.com/users/sw180283/orgs","repos_url":"https://api.github.com/users/sw180283/repos","events_url":"https://api.github.com/users/sw180283/events{/privacy}","received_events_url":"https://api.github.com/users/sw180283/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sw180283/comp110-worksheet-4","description":"Skeleton projects for COMP110 Worksheet 4","fork":true,"url":"https://api.github.com/repos/sw180283/comp110-worksheet-4","forks_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/forks","keys_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/teams","hooks_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/hooks","issue_events_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/issues/events{/number}","events_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/events","assignees_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/assignees{/user}","branches_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/branches{/branch}","tags_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/tags","blobs_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/git/refs{/sha}","trees_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/statuses/{sha}","languages_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/languages","stargazers_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/stargazers","contributors_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/contributors","subscribers_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/subscribers","subscription_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/subscription","commits_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/commits{/sha}","git_commits_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/git/commits{/sha}","comments_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/comments{/number}","issue_comment_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/issues/comments{/number}","contents_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/contents/{+path}","compare_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/merges","archive_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/downloads","issues_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/issues{/number}","pulls_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/pulls{/number}","milestones_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/milestones{/number}","notifications_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/labels{/name}","releases_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/releases{/id}","deployments_url":"https://api.github.com/repos/sw180283/comp110-worksheet-4/deployments","created_at":"2016-02-07T19:05:04Z","updated_at":"2016-02-07T19:05:05Z","pushed_at":"2016-02-10T16:53:58Z","git_url":"git://github.com/sw180283/comp110-worksheet-4.git","ssh_url":"git@github.com:sw180283/comp110-worksheet-4.git","clone_url":"https://github.com/sw180283/comp110-worksheet-4.git","svn_url":"https://github.com/sw180283/comp110-worksheet-4","homepage":null,"size":450,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Falmouth-Games-Academy:master","ref":"master","sha":"b4d6bd14efe283e625bf229791b13a0a80d5a4bb","user":{"login":"Falmouth-Games-Academy","id":13518108,"avatar_url":"https://avatars.githubusercontent.com/u/13518108?v=3","gravatar_id":"","url":"https://api.github.com/users/Falmouth-Games-Academy","html_url":"https://github.com/Falmouth-Games-Academy","followers_url":"https://api.github.com/users/Falmouth-Games-Academy/followers","following_url":"https://api.github.com/users/Falmouth-Games-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Falmouth-Games-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Falmouth-Games-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Falmouth-Games-Academy/subscriptions","organizations_url":"https://api.github.com/users/Falmouth-Games-Academy/orgs","repos_url":"https://api.github.com/users/Falmouth-Games-Academy/repos","events_url":"https://api.github.com/users/Falmouth-Games-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Falmouth-Games-Academy/received_events","type":"Organization","site_admin":false},"repo":{"id":49946442,"name":"comp110-worksheet-4","full_name":"Falmouth-Games-Academy/comp110-worksheet-4","owner":{"login":"Falmouth-Games-Academy","id":13518108,"avatar_url":"https://avatars.githubusercontent.com/u/13518108?v=3","gravatar_id":"","url":"https://api.github.com/users/Falmouth-Games-Academy","html_url":"https://github.com/Falmouth-Games-Academy","followers_url":"https://api.github.com/users/Falmouth-Games-Academy/followers","following_url":"https://api.github.com/users/Falmouth-Games-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Falmouth-Games-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Falmouth-Games-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Falmouth-Games-Academy/subscriptions","organizations_url":"https://api.github.com/users/Falmouth-Games-Academy/orgs","repos_url":"https://api.github.com/users/Falmouth-Games-Academy/repos","events_url":"https://api.github.com/users/Falmouth-Games-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Falmouth-Games-Academy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Falmouth-Games-Academy/comp110-worksheet-4","description":"Skeleton projects for COMP110 Worksheet 4","fork":false,"url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4","forks_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/forks","keys_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/teams","hooks_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/hooks","issue_events_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/issues/events{/number}","events_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/events","assignees_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/assignees{/user}","branches_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/branches{/branch}","tags_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/tags","blobs_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/git/refs{/sha}","trees_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/statuses/{sha}","languages_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/languages","stargazers_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/stargazers","contributors_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/contributors","subscribers_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/subscribers","subscription_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/subscription","commits_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/commits{/sha}","git_commits_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/git/commits{/sha}","comments_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/comments{/number}","issue_comment_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/issues/comments{/number}","contents_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/contents/{+path}","compare_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/merges","archive_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/downloads","issues_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/issues{/number}","pulls_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/pulls{/number}","milestones_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/milestones{/number}","notifications_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/labels{/name}","releases_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/releases{/id}","deployments_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/deployments","created_at":"2016-01-19T10:53:52Z","updated_at":"2016-01-19T10:58:03Z","pushed_at":"2016-02-15T13:54:51Z","git_url":"git://github.com/Falmouth-Games-Academy/comp110-worksheet-4.git","ssh_url":"git@github.com:Falmouth-Games-Academy/comp110-worksheet-4.git","clone_url":"https://github.com/Falmouth-Games-Academy/comp110-worksheet-4.git","svn_url":"https://github.com/Falmouth-Games-Academy/comp110-worksheet-4","homepage":null,"size":440,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":6,"forks":9,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/pulls/6"},"html":{"href":"https://github.com/Falmouth-Games-Academy/comp110-worksheet-4/pull/6"},"issue":{"href":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/issues/6"},"comments":{"href":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/Falmouth-Games-Academy/comp110-worksheet-4/statuses/85409179344758d2cc8f96a5e2af59ab45b1995f"}}}}