{"action":"created","issue":{"url":"https://api.github.com/repos/remixlab/proscene/issues/6","repository_url":"https://api.github.com/repos/remixlab/proscene","labels_url":"https://api.github.com/repos/remixlab/proscene/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/remixlab/proscene/issues/6/comments","events_url":"https://api.github.com/repos/remixlab/proscene/issues/6/events","html_url":"https://github.com/remixlab/proscene/issues/6","id":181852201,"number":6,"title":"PShape mode CENTER fucks iFrame position","user":{"login":"Diex","id":495303,"avatar_url":"https://avatars.githubusercontent.com/u/495303?v=3","gravatar_id":"","url":"https://api.github.com/users/Diex","html_url":"https://github.com/Diex","followers_url":"https://api.github.com/users/Diex/followers","following_url":"https://api.github.com/users/Diex/following{/other_user}","gists_url":"https://api.github.com/users/Diex/gists{/gist_id}","starred_url":"https://api.github.com/users/Diex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diex/subscriptions","organizations_url":"https://api.github.com/users/Diex/orgs","repos_url":"https://api.github.com/users/Diex/repos","events_url":"https://api.github.com/users/Diex/events{/privacy}","received_events_url":"https://api.github.com/users/Diex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-08T22:27:43Z","updated_at":"2016-10-08T22:31:59Z","closed_at":null,"body":"si no haces esto, el frame se te vuela de la pantalla si usas modo CENTER.\r\n\r\nesto es usando \r\n\r\nframe.setShape(ps);\r\npgraphics.shapeMode(CENTER);\r\nframe.draw(pgraphics);\r\n\r\nsi en Shape.java haces:\r\n\r\n26:         shp.draw(pg); // needs to handle recorder too\r\n27:         if (pg.shapeMode == PApplet.CENTER) {\r\n28:           // Si no haces esto, la transformación se te acumula \r\n29:           iFrame.translate(shp.getWidth() / 2, shp.getHeight() / 2);\r\n30:           pg.popMatrix();\r\n31:         }\r\n32:       }\r\n"},"comment":{"url":"https://api.github.com/repos/remixlab/proscene/issues/comments/252452160","html_url":"https://github.com/remixlab/proscene/issues/6#issuecomment-252452160","issue_url":"https://api.github.com/repos/remixlab/proscene/issues/6","id":252452160,"user":{"login":"Diex","id":495303,"avatar_url":"https://avatars.githubusercontent.com/u/495303?v=3","gravatar_id":"","url":"https://api.github.com/users/Diex","html_url":"https://github.com/Diex","followers_url":"https://api.github.com/users/Diex/followers","following_url":"https://api.github.com/users/Diex/following{/other_user}","gists_url":"https://api.github.com/users/Diex/gists{/gist_id}","starred_url":"https://api.github.com/users/Diex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diex/subscriptions","organizations_url":"https://api.github.com/users/Diex/orgs","repos_url":"https://api.github.com/users/Diex/repos","events_url":"https://api.github.com/users/Diex/events{/privacy}","received_events_url":"https://api.github.com/users/Diex/received_events","type":"User","site_admin":false},"created_at":"2016-10-08T22:31:59Z","updated_at":"2016-10-08T22:31:59Z","body":"silly me (silly you maybe) :)\r\nI think you should do:\r\n\r\nFile: <unsaved>\r\n20:         pg.flush();\r\n21:         if (pg.shapeMode == PApplet.CENTER) {\r\n22:           pg.pushMatrix();\r\n23:           // iFrame.translate(-shp.getWidth() / 2, -shp.getHeight() / 2);\r\n24:           **pg.translate(-shp.getWidth() / 2, -shp.getHeight() / 2);**\r\n25:         }\r\n26:         \r\n"}}
{"actor":{"display_login":"Diex"}}