{"action":"created","issue":{"url":"https://api.github.com/repos/pixelkind/p5canvas/issues/3","repository_url":"https://api.github.com/repos/pixelkind/p5canvas","labels_url":"https://api.github.com/repos/pixelkind/p5canvas/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/pixelkind/p5canvas/issues/3/comments","events_url":"https://api.github.com/repos/pixelkind/p5canvas/issues/3/events","html_url":"https://github.com/pixelkind/p5canvas/issues/3","id":273818389,"number":3,"title":"how to access the p5 object ?","user":{"login":"LBdN","id":138711,"avatar_url":"https://avatars2.githubusercontent.com/u/138711?v=4","gravatar_id":"","url":"https://api.github.com/users/LBdN","html_url":"https://github.com/LBdN","followers_url":"https://api.github.com/users/LBdN/followers","following_url":"https://api.github.com/users/LBdN/following{/other_user}","gists_url":"https://api.github.com/users/LBdN/gists{/gist_id}","starred_url":"https://api.github.com/users/LBdN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LBdN/subscriptions","organizations_url":"https://api.github.com/users/LBdN/orgs","repos_url":"https://api.github.com/users/LBdN/repos","events_url":"https://api.github.com/users/LBdN/events{/privacy}","received_events_url":"https://api.github.com/users/LBdN/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-14T14:48:07Z","updated_at":"2017-11-15T15:53:19Z","closed_at":null,"author_association":"NONE","body":"In my code, I use the p5.Vector.add method. but when running the extension, I got a \r\n\r\n> mysetup(): Cannot read property 'sub' of undefined\r\n> draw(): Cannot read property 'sub' of undefined\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pixelkind/p5canvas/issues/comments/344636111","html_url":"https://github.com/pixelkind/p5canvas/issues/3#issuecomment-344636111","issue_url":"https://api.github.com/repos/pixelkind/p5canvas/issues/3","id":344636111,"user":{"login":"pixelkind","id":329306,"avatar_url":"https://avatars0.githubusercontent.com/u/329306?v=4","gravatar_id":"","url":"https://api.github.com/users/pixelkind","html_url":"https://github.com/pixelkind","followers_url":"https://api.github.com/users/pixelkind/followers","following_url":"https://api.github.com/users/pixelkind/following{/other_user}","gists_url":"https://api.github.com/users/pixelkind/gists{/gist_id}","starred_url":"https://api.github.com/users/pixelkind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixelkind/subscriptions","organizations_url":"https://api.github.com/users/pixelkind/orgs","repos_url":"https://api.github.com/users/pixelkind/repos","events_url":"https://api.github.com/users/pixelkind/events{/privacy}","received_events_url":"https://api.github.com/users/pixelkind/received_events","type":"User","site_admin":false},"created_at":"2017-11-15T15:53:19Z","updated_at":"2017-11-15T15:53:19Z","author_association":"OWNER","body":"Hej, can you please provide me with an example?\r\n\r\nI have tested the example from the [reference](https://p5js.org/reference/#/p5.Vector) and it works.\r\n\r\n```javascript\r\nvar v1 = createVector(40, 50);\r\nvar v2 = createVector(20, 30);\r\n\r\nellipse(v1.x, v1.y, 50, 50);\r\nellipse(v2.x, v2.y, 50, 50);\r\nv1.add(v2);\r\nellipse(v1.x, v1.y, 50, 50);\r\n```\r\n\r\nBest regards, Garrit"}}
{"actor":{"display_login":"pixelkind"}}