()
| 14 | long lastPhaseChange = 0; |
| 15 | |
| 16 | public ImageBenchScene() throws IOException { |
| 17 | sprites = new Image[14]; |
| 18 | for (int i = 0; i < 14; ++i) { |
| 19 | sprites[i] = Image.makeDeferredFromEncodedBytes(Files.readAllBytes(java.nio.file.Path.of(file("images/sprites/bunny" + i + ".png")))); |
| 20 | } |
| 21 | all = Image.makeDeferredFromEncodedBytes(Files.readAllBytes(java.nio.file.Path.of(file("images/sprites/all.png")))); |
| 22 | _variants = new String[] {"One image", "14 images"}; |
| 23 | } |
| 24 | |
| 25 | @Override |
| 26 | public void draw(Canvas canvas, int width, int height, float dpi, int xpos, int ypos) { |
nothing calls this directly
no test coverage detected