/* @pjs globalKeyEvents="true"; */ /* @pjs pauseOnBlur="true"; */ void display() { // Do nothing } void drawEllipse(float _x, float _y, float _w, float _h){ ellipse(_x, height - _y, _w, _h); } void drawLine(float _x1, float _y1, float _x2, float _y2){ line(_x1, height - _y1, _x2, height - _y2); } void drawPoint(float _x, float _y){ point(_x, height - _y); } void drawQuad(float _x1, float _y1, float _x2, float _y2, float _x3, float _y3, float _x4, float _y4){ quad(_x1, height - _y1, _x2, height - _y2, _x3, height - _y3, _x4, height - _y4); } void drawRect(float _x, float _y, float _w, float _h){ rect(_x, height - _y, _w, _h); } void drawRect(float _x, float _y, float _w, float _h, float _r){ rect(_x, height - _y, _w, _h, _r); } void drawRect(float _x, float _y, float _w, float _h, float _tl, float _tr, float _br, float _bl){ rect(_x, height - _y, _w, _h, _tl, _tr, _br, _bl); } void drawTriangle(float _x1, float _y1, float _x2, float _y2, float _x3, float _y3){ triangle(_x1, height - _y1, _x2, height - _y2, _x3, height - _y3); } void drawText(String _str, float _x, float _y) { text(_str, _x, height- _y); } void drawText(float _num, float _x, float _y) { text(_num, _x, height- _y); } void drawImage(PImage _img, float _x, float _y) { image(_img, _x, height - _y); } void drawImage(PImage _img, float _x, float _y, float _w, float _h) { image(_img, _x, height - _y, _w, _h); }