(PApplet sketch)
| 127 | |
| 128 | |
| 129 | public void initOffscreen(PApplet sketch) { |
| 130 | this.sketch = sketch; |
| 131 | |
| 132 | sketchWidth = sketch.sketchWidth(); |
| 133 | sketchHeight = sketch.sketchHeight(); |
| 134 | |
| 135 | if (window != null) { |
| 136 | canvas = new NewtCanvasAWT(window); |
| 137 | canvas.setBounds(0, 0, window.getWidth(), window.getHeight()); |
| 138 | canvas.setFocusable(true); |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | |
| 143 | public void initFrame(PApplet sketch) { |
nothing calls this directly
no test coverage detected