()
| 15 | } |
| 16 | |
| 17 | function draw() { |
| 18 | translate((width - img.width) / 2, (height - img.height) / 2); |
| 19 | |
| 20 | img.loadPixels(); |
| 21 | |
| 22 | for (var i = 0; i < 3000; i++) { |
| 23 | var px = random(img.width); |
| 24 | var py = random(img.height); |
| 25 | |
| 26 | fill(img.get(px, py)); |
| 27 | ellipse(px, py, 3, 3); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | function mouseClicked() { |
| 32 | img.loop(); |
nothing calls this directly
no test coverage detected