{"action":"created","comment":{"url":"https://api.github.com/repos/code-dot-org/dance-party/pulls/comments/234334766","pull_request_review_id":175964000,"id":234334766,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDMzNDc2Ng==","diff_hunk":"@@ -430,6 +430,113 @@ module.exports = class Effects {\n       }\n     };\n \n+    this.kaleidoscope = {\n+      init: function () {\n+        this.shapes = p5.createGraphics(200, 200);\n+        this.shapes.pixelDensity(1);\n+        this.shapes.fill('white');\n+        this.shapes.noStroke();\n+        this.shapes.angleMode(p5.DEGREES);\n+\n+        this.hex = p5.createGraphics(200, 200);\n+        this.hex.pixelDensity(1);\n+        this.hex.angleMode(p5.DEGREES);\n+\n+        this.h = Math.sqrt(3) / 2 * 100;\n+      },\n+      blitHex: function () {\n+        this.hex.push();\n+        this.hex.clear();\n+        this.hex.translate(100, 100);\n+        this.hex.rotate(30);\n+        for (let i = 0; i < 3; i++) {\n+          this.hex.image(this.shapes, -50, 0);\n+          this.hex.scale(-1, 1);\n+          this.hex.rotate(60);\n+          this.hex.image(this.shapes, -50, 0);\n+          this.hex.rotate(60);\n+          this.hex.scale(-1, 1);\n+        }\n+        this.hex.pop();\n+      },\n+      row: function (n) {\n+        p5.push();\n+        for (let i = 0; i < n; i++) {\n+          p5.image(this.hex, 0, 0);\n+          p5.translate(this.h * 2, 0);\n+        }\n+        p5.pop();\n+      },\n+      draw: function () {\n+        if (!this.shapes) {\n+          this.init();\n+        }\n+\n+        p5.background('#333');\n+\n+        const ctx = this.shapes._renderer.drawingContext;\n+        ctx.save();\n+        ctx.beginPath();\n+        ctx.moveTo(50, 0);\n+        ctx.lineTo(100, this.h);\n+        ctx.lineTo(0, this.h);\n+        ctx.clip();\n+        this.shapes.clear();\n+        this.shapes.rotate(p5.frameCount);","path":"src/Effects.js","position":56,"original_position":56,"commit_id":"162e164c99c3aa042bd4de9dd97915571bc9c8c4","original_commit_id":"162e164c99c3aa042bd4de9dd97915571bc9c8c4","user":{"login":"joshlory","id":413693,"node_id":"MDQ6VXNlcjQxMzY5Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/413693?v=4","gravatar_id":"","url":"https://api.github.com/users/joshlory","html_url":"https://github.com/joshlory","followers_url":"https://api.github.com/users/joshlory/followers","following_url":"https://api.github.com/users/joshlory/following{/other_user}","gists_url":"https://api.github.com/users/joshlory/gists{/gist_id}","starred_url":"https://api.github.com/users/joshlory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshlory/subscriptions","organizations_url":"https://api.github.com/users/joshlory/orgs","repos_url":"https://api.github.com/users/joshlory/repos","events_url":"https://api.github.com/users/joshlory/events{/privacy}","received_events_url":"https://api.github.com/users/joshlory/received_events","type":"User","site_admin":false},"body":"I like this.  I think I'll hold off on this for now, in case we want to make the shapes change with the music.  But if we see perf issues this would be a great optimization!","created_at":"2018-11-16T20:14:45Z","updated_at":"2018-11-16T20:14:45Z","html_url":"https://github.com/code-dot-org/dance-party/pull/396#discussion_r234334766","pull_request_url":"https://api.github.com/repos/code-dot-org/dance-party/pulls/396","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/code-dot-org/dance-party/pulls/comments/234334766"},"html":{"href":"https://github.com/code-dot-org/dance-party/pull/396#discussion_r234334766"},"pull_request":{"href":"https://api.github.com/repos/code-dot-org/dance-party/pulls/396"}},"in_reply_to_id":234102463},"pull_request":{"url":"https://api.github.com/repos/code-dot-org/dance-party/pulls/396","id":231083417,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxMDgzNDE3","html_url":"https://github.com/code-dot-org/dance-party/pull/396","diff_url":"https://github.com/code-dot-org/dance-party/pull/396.diff","patch_url":"https://github.com/code-dot-org/dance-party/pull/396.patch","issue_url":"https://api.github.com/repos/code-dot-org/dance-party/issues/396","number":396,"state":"open","locked":false,"title":"Kaleidoscope background effect","user":{"login":"joshlory","id":413693,"node_id":"MDQ6VXNlcjQxMzY5Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/413693?v=4","gravatar_id":"","url":"https://api.github.com/users/joshlory","html_url":"https://github.com/joshlory","followers_url":"https://api.github.com/users/joshlory/followers","following_url":"https://api.github.com/users/joshlory/following{/other_user}","gists_url":"https://api.github.com/users/joshlory/gists{/gist_id}","starred_url":"https://api.github.com/users/joshlory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshlory/subscriptions","organizations_url":"https://api.github.com/users/joshlory/orgs","repos_url":"https://api.github.com/users/joshlory/repos","events_url":"https://api.github.com/users/joshlory/events{/privacy}","received_events_url":"https://api.github.com/users/joshlory/received_events","type":"User","site_admin":false},"body":"Add kaleidoscope background effect, with a few simple shapes.\r\n\r\n![kaleidoscope](https://user-images.githubusercontent.com/413693/48594312-f38c4f80-e904-11e8-9d1d-cb67fafb9da6.gif)","created_at":"2018-11-15T06:33:02Z","updated_at":"2018-11-16T20:14:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"659ae1bb9422412c28cb1c2ad91fa4ceaf5c44ab","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/code-dot-org/dance-party/pulls/396/commits","review_comments_url":"https://api.github.com/repos/code-dot-org/dance-party/pulls/396/comments","review_comment_url":"https://api.github.com/repos/code-dot-org/dance-party/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-dot-org/dance-party/issues/396/comments","statuses_url":"https://api.github.com/repos/code-dot-org/dance-party/statuses/162e164c99c3aa042bd4de9dd97915571bc9c8c4","head":{"label":"code-dot-org:kaleidoscope","ref":"kaleidoscope","sha":"162e164c99c3aa042bd4de9dd97915571bc9c8c4","user":{"login":"code-dot-org","id":5124627,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMjQ2Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/5124627?v=4","gravatar_id":"","url":"https://api.github.com/users/code-dot-org","html_url":"https://github.com/code-dot-org","followers_url":"https://api.github.com/users/code-dot-org/followers","following_url":"https://api.github.com/users/code-dot-org/following{/other_user}","gists_url":"https://api.github.com/users/code-dot-org/gists{/gist_id}","starred_url":"https://api.github.com/users/code-dot-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-dot-org/subscriptions","organizations_url":"https://api.github.com/users/code-dot-org/orgs","repos_url":"https://api.github.com/users/code-dot-org/repos","events_url":"https://api.github.com/users/code-dot-org/events{/privacy}","received_events_url":"https://api.github.com/users/code-dot-org/received_events","type":"Organization","site_admin":false},"repo":{"id":152283771,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIyODM3NzE=","name":"dance-party","full_name":"code-dot-org/dance-party","private":false,"owner":{"login":"code-dot-org","id":5124627,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMjQ2Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/5124627?v=4","gravatar_id":"","url":"https://api.github.com/users/code-dot-org","html_url":"https://github.com/code-dot-org","followers_url":"https://api.github.com/users/code-dot-org/followers","following_url":"https://api.github.com/users/code-dot-org/following{/other_user}","gists_url":"https://api.github.com/users/code-dot-org/gists{/gist_id}","starred_url":"https://api.github.com/users/code-dot-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-dot-org/subscriptions","organizations_url":"https://api.github.com/users/code-dot-org/orgs","repos_url":"https://api.github.com/users/code-dot-org/repos","events_url":"https://api.github.com/users/code-dot-org/events{/privacy}","received_events_url":"https://api.github.com/users/code-dot-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/code-dot-org/dance-party","description":"Renderer for the Dance game type. Based on p5.js and p5.play.js.","fork":false,"url":"https://api.github.com/repos/code-dot-org/dance-party","forks_url":"https://api.github.com/repos/code-dot-org/dance-party/forks","keys_url":"https://api.github.com/repos/code-dot-org/dance-party/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-dot-org/dance-party/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-dot-org/dance-party/teams","hooks_url":"https://api.github.com/repos/code-dot-org/dance-party/hooks","issue_events_url":"https://api.github.com/repos/code-dot-org/dance-party/issues/events{/number}","events_url":"https://api.github.com/repos/code-dot-org/dance-party/events","assignees_url":"https://api.github.com/repos/code-dot-org/dance-party/assignees{/user}","branches_url":"https://api.github.com/repos/code-dot-org/dance-party/branches{/branch}","tags_url":"https://api.github.com/repos/code-dot-org/dance-party/tags","blobs_url":"https://api.github.com/repos/code-dot-org/dance-party/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-dot-org/dance-party/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-dot-org/dance-party/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-dot-org/dance-party/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-dot-org/dance-party/statuses/{sha}","languages_url":"https://api.github.com/repos/code-dot-org/dance-party/languages","stargazers_url":"https://api.github.com/repos/code-dot-org/dance-party/stargazers","contributors_url":"https://api.github.com/repos/code-dot-org/dance-party/contributors","subscribers_url":"https://api.github.com/repos/code-dot-org/dance-party/subscribers","subscription_url":"https://api.github.com/repos/code-dot-org/dance-party/subscription","commits_url":"https://api.github.com/repos/code-dot-org/dance-party/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-dot-org/dance-party/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-dot-org/dance-party/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-dot-org/dance-party/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-dot-org/dance-party/contents/{+path}","compare_url":"https://api.github.com/repos/code-dot-org/dance-party/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-dot-org/dance-party/merges","archive_url":"https://api.github.com/repos/code-dot-org/dance-party/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-dot-org/dance-party/downloads","issues_url":"https://api.github.com/repos/code-dot-org/dance-party/issues{/number}","pulls_url":"https://api.github.com/repos/code-dot-org/dance-party/pulls{/number}","milestones_url":"https://api.github.com/repos/code-dot-org/dance-party/milestones{/number}","notifications_url":"https://api.github.com/repos/code-dot-org/dance-party/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-dot-org/dance-party/labels{/name}","releases_url":"https://api.github.com/repos/code-dot-org/dance-party/releases{/id}","deployments_url":"https://api.github.com/repos/code-dot-org/dance-party/deployments","created_at":"2018-10-09T16:23:51Z","updated_at":"2018-11-16T20:11:13Z","pushed_at":"2018-11-16T20:11:14Z","git_url":"git://github.com/code-dot-org/dance-party.git","ssh_url":"git@github.com:code-dot-org/dance-party.git","clone_url":"https://github.com/code-dot-org/dance-party.git","svn_url":"https://github.com/code-dot-org/dance-party","homepage":"https://code-dot-org.github.io/dance-party/","size":52564,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":88,"license":null,"forks":1,"open_issues":88,"watchers":1,"default_branch":"master"}},"base":{"label":"code-dot-org:master","ref":"master","sha":"4f676628714c7baa5f863e14e47824021e5197fc","user":{"login":"code-dot-org","id":5124627,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMjQ2Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/5124627?v=4","gravatar_id":"","url":"https://api.github.com/users/code-dot-org","html_url":"https://github.com/code-dot-org","followers_url":"https://api.github.com/users/code-dot-org/followers","following_url":"https://api.github.com/users/code-dot-org/following{/other_user}","gists_url":"https://api.github.com/users/code-dot-org/gists{/gist_id}","starred_url":"https://api.github.com/users/code-dot-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-dot-org/subscriptions","organizations_url":"https://api.github.com/users/code-dot-org/orgs","repos_url":"https://api.github.com/users/code-dot-org/repos","events_url":"https://api.github.com/users/code-dot-org/events{/privacy}","received_events_url":"https://api.github.com/users/code-dot-org/received_events","type":"Organization","site_admin":false},"repo":{"id":152283771,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIyODM3NzE=","name":"dance-party","full_name":"code-dot-org/dance-party","private":false,"owner":{"login":"code-dot-org","id":5124627,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMjQ2Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/5124627?v=4","gravatar_id":"","url":"https://api.github.com/users/code-dot-org","html_url":"https://github.com/code-dot-org","followers_url":"https://api.github.com/users/code-dot-org/followers","following_url":"https://api.github.com/users/code-dot-org/following{/other_user}","gists_url":"https://api.github.com/users/code-dot-org/gists{/gist_id}","starred_url":"https://api.github.com/users/code-dot-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-dot-org/subscriptions","organizations_url":"https://api.github.com/users/code-dot-org/orgs","repos_url":"https://api.github.com/users/code-dot-org/repos","events_url":"https://api.github.com/users/code-dot-org/events{/privacy}","received_events_url":"https://api.github.com/users/code-dot-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/code-dot-org/dance-party","description":"Renderer for the Dance game type. Based on p5.js and p5.play.js.","fork":false,"url":"https://api.github.com/repos/code-dot-org/dance-party","forks_url":"https://api.github.com/repos/code-dot-org/dance-party/forks","keys_url":"https://api.github.com/repos/code-dot-org/dance-party/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-dot-org/dance-party/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-dot-org/dance-party/teams","hooks_url":"https://api.github.com/repos/code-dot-org/dance-party/hooks","issue_events_url":"https://api.github.com/repos/code-dot-org/dance-party/issues/events{/number}","events_url":"https://api.github.com/repos/code-dot-org/dance-party/events","assignees_url":"https://api.github.com/repos/code-dot-org/dance-party/assignees{/user}","branches_url":"https://api.github.com/repos/code-dot-org/dance-party/branches{/branch}","tags_url":"https://api.github.com/repos/code-dot-org/dance-party/tags","blobs_url":"https://api.github.com/repos/code-dot-org/dance-party/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-dot-org/dance-party/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-dot-org/dance-party/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-dot-org/dance-party/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-dot-org/dance-party/statuses/{sha}","languages_url":"https://api.github.com/repos/code-dot-org/dance-party/languages","stargazers_url":"https://api.github.com/repos/code-dot-org/dance-party/stargazers","contributors_url":"https://api.github.com/repos/code-dot-org/dance-party/contributors","subscribers_url":"https://api.github.com/repos/code-dot-org/dance-party/subscribers","subscription_url":"https://api.github.com/repos/code-dot-org/dance-party/subscription","commits_url":"https://api.github.com/repos/code-dot-org/dance-party/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-dot-org/dance-party/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-dot-org/dance-party/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-dot-org/dance-party/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-dot-org/dance-party/contents/{+path}","compare_url":"https://api.github.com/repos/code-dot-org/dance-party/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-dot-org/dance-party/merges","archive_url":"https://api.github.com/repos/code-dot-org/dance-party/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-dot-org/dance-party/downloads","issues_url":"https://api.github.com/repos/code-dot-org/dance-party/issues{/number}","pulls_url":"https://api.github.com/repos/code-dot-org/dance-party/pulls{/number}","milestones_url":"https://api.github.com/repos/code-dot-org/dance-party/milestones{/number}","notifications_url":"https://api.github.com/repos/code-dot-org/dance-party/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-dot-org/dance-party/labels{/name}","releases_url":"https://api.github.com/repos/code-dot-org/dance-party/releases{/id}","deployments_url":"https://api.github.com/repos/code-dot-org/dance-party/deployments","created_at":"2018-10-09T16:23:51Z","updated_at":"2018-11-16T20:11:13Z","pushed_at":"2018-11-16T20:11:14Z","git_url":"git://github.com/code-dot-org/dance-party.git","ssh_url":"git@github.com:code-dot-org/dance-party.git","clone_url":"https://github.com/code-dot-org/dance-party.git","svn_url":"https://github.com/code-dot-org/dance-party","homepage":"https://code-dot-org.github.io/dance-party/","size":52564,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":88,"license":null,"forks":1,"open_issues":88,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/code-dot-org/dance-party/pulls/396"},"html":{"href":"https://github.com/code-dot-org/dance-party/pull/396"},"issue":{"href":"https://api.github.com/repos/code-dot-org/dance-party/issues/396"},"comments":{"href":"https://api.github.com/repos/code-dot-org/dance-party/issues/396/comments"},"review_comments":{"href":"https://api.github.com/repos/code-dot-org/dance-party/pulls/396/comments"},"review_comment":{"href":"https://api.github.com/repos/code-dot-org/dance-party/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-dot-org/dance-party/pulls/396/commits"},"statuses":{"href":"https://api.github.com/repos/code-dot-org/dance-party/statuses/162e164c99c3aa042bd4de9dd97915571bc9c8c4"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"joshlory"}}