(pointer)
| 809 | } |
| 810 | |
| 811 | function clickSplat(pointer) { |
| 812 | const color = generateColor(); |
| 813 | color.r *= 10.0; |
| 814 | color.g *= 10.0; |
| 815 | color.b *= 10.0; |
| 816 | let dx = 10 * (Math.random() - 0.5); |
| 817 | let dy = 30 * (Math.random() - 0.5); |
| 818 | splat(pointer.texcoordX, pointer.texcoordY, dx, dy, color); |
| 819 | } |
| 820 | |
| 821 | function splat(x, y, dx, dy, color) { |
| 822 | splatProgram.bind(); |
no test coverage detected