{"action":"created","issue":{"url":"https://api.github.com/repos/IDMNYU/p5.js-func/issues/1","repository_url":"https://api.github.com/repos/IDMNYU/p5.js-func","labels_url":"https://api.github.com/repos/IDMNYU/p5.js-func/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/IDMNYU/p5.js-func/issues/1/comments","events_url":"https://api.github.com/repos/IDMNYU/p5.js-func/issues/1/events","html_url":"https://github.com/IDMNYU/p5.js-func/issues/1","id":297315205,"number":1,"title":" TWO_PI is not defined","user":{"login":"Tsangares","id":9126482,"avatar_url":"https://avatars3.githubusercontent.com/u/9126482?v=4","gravatar_id":"","url":"https://api.github.com/users/Tsangares","html_url":"https://github.com/Tsangares","followers_url":"https://api.github.com/users/Tsangares/followers","following_url":"https://api.github.com/users/Tsangares/following{/other_user}","gists_url":"https://api.github.com/users/Tsangares/gists{/gist_id}","starred_url":"https://api.github.com/users/Tsangares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tsangares/subscriptions","organizations_url":"https://api.github.com/users/Tsangares/orgs","repos_url":"https://api.github.com/users/Tsangares/repos","events_url":"https://api.github.com/users/Tsangares/events{/privacy}","received_events_url":"https://api.github.com/users/Tsangares/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-15T02:53:02Z","updated_at":"2018-02-15T23:05:09Z","closed_at":null,"author_association":"NONE","body":"When I try to run this in instance mode I recieve the error, ` TWO_PI is not defined`.\r\n\r\nHow do I run this in instance mode.\r\nMycode:\r\n```\r\nvar sketch=function(p){\r\n    p.setup=function() {\r\n        var c=p.createCanvas(p.windowWidth, p.windowHeight);\r\n        c.style('position','fixed');\r\n        c.style('z-index', '-1');\r\n        c.style('top', '0');\r\n        var g = new p5.Gen(); // function generator object                                                                                                                                                         \r\n        var bar = g.fillFloat32Array(\"waveform\", 1000, \"sine\");\r\n\r\n    };\r\n\r\n    p.draw=function() {\r\n\r\n    };\r\n};\r\nvar myp5=new p5(sketch);\r\n```"},"comment":{"url":"https://api.github.com/repos/IDMNYU/p5.js-func/issues/comments/366092070","html_url":"https://github.com/IDMNYU/p5.js-func/issues/1#issuecomment-366092070","issue_url":"https://api.github.com/repos/IDMNYU/p5.js-func/issues/1","id":366092070,"user":{"login":"Tsangares","id":9126482,"avatar_url":"https://avatars3.githubusercontent.com/u/9126482?v=4","gravatar_id":"","url":"https://api.github.com/users/Tsangares","html_url":"https://github.com/Tsangares","followers_url":"https://api.github.com/users/Tsangares/followers","following_url":"https://api.github.com/users/Tsangares/following{/other_user}","gists_url":"https://api.github.com/users/Tsangares/gists{/gist_id}","starred_url":"https://api.github.com/users/Tsangares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tsangares/subscriptions","organizations_url":"https://api.github.com/users/Tsangares/orgs","repos_url":"https://api.github.com/users/Tsangares/repos","events_url":"https://api.github.com/users/Tsangares/events{/privacy}","received_events_url":"https://api.github.com/users/Tsangares/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T23:05:09Z","updated_at":"2018-02-15T23:05:09Z","author_association":"NONE","body":"The glitch is coming from the func library. \r\n\r\n`ReferenceError: TWO_PI is not defined \r\np5.func.min.js:1:596`"}}
{"actor":{"display_login":"Tsangares"}}