{"action":"opened","issue":{"url":"https://api.github.com/repos/processing/p5.js/issues/755","labels_url":"https://api.github.com/repos/processing/p5.js/issues/755/labels{/name}","comments_url":"https://api.github.com/repos/processing/p5.js/issues/755/comments","events_url":"https://api.github.com/repos/processing/p5.js/issues/755/events","html_url":"https://github.com/processing/p5.js/issues/755","id":88884777,"number":755,"title":"Sending a p5.Graphics object into image() spams the console with warnings, reducing performance","user":{"login":"ccheaton","id":205364,"avatar_url":"https://avatars.githubusercontent.com/u/205364?v=3","gravatar_id":"","url":"https://api.github.com/users/ccheaton","html_url":"https://github.com/ccheaton","followers_url":"https://api.github.com/users/ccheaton/followers","following_url":"https://api.github.com/users/ccheaton/following{/other_user}","gists_url":"https://api.github.com/users/ccheaton/gists{/gist_id}","starred_url":"https://api.github.com/users/ccheaton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccheaton/subscriptions","organizations_url":"https://api.github.com/users/ccheaton/orgs","repos_url":"https://api.github.com/users/ccheaton/repos","events_url":"https://api.github.com/users/ccheaton/events{/privacy}","received_events_url":"https://api.github.com/users/ccheaton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-17T01:40:05Z","updated_at":"2015-06-17T01:40:05Z","closed_at":null,"body":"If you run the [`createGraphics()` example](http://p5js.org/reference/#/p5/createGraphics) code locally and open your Chrome developer tools, you'll see the following repeated many times:\r\n\r\n> p5.js says: image was expecting a p5.image for parameter #1, received [object Object] instead. image takes different numbers of parameters depending on what you want to do. Click this link to learn more: [http://p5js.org/reference/#p5/image]\r\n\r\n![screen shot 2015-06-16 at 9 38 24 pm](https://cloud.githubusercontent.com/assets/205364/8198114/170a6590-1470-11e5-9c6a-28cc26834819.png)\r\n\r\nThis causes serious performance issues on my computer, spinning up the fan, etc...\r\n\r\nThe code I used to reproduce it is:\r\n\r\n```javascript\r\nvar pg;\r\nfunction setup() {\r\n  createCanvas(100, 100);\r\n  pg = createGraphics(100, 100);\r\n}\r\nfunction draw() {\r\n  background(200);\r\n  pg.background(100);\r\n  pg.ellipse(pg.width/2, pg.height/2, 50, 50);\r\n  image(pg, 50, 50);\r\n  image(pg, 0, 0, 50, 50);\r\n}\r\n```"}}