| 61 | |
| 62 | |
| 63 | fl::SuperSample getSuperSample() { |
| 64 | switch (int(superSample)) { |
| 65 | case 0: |
| 66 | return fl::SuperSample::SUPER_SAMPLE_NONE; |
| 67 | case 1: |
| 68 | return fl::SuperSample::SUPER_SAMPLE_2X; |
| 69 | case 2: |
| 70 | return fl::SuperSample::SUPER_SAMPLE_4X; |
| 71 | case 3: |
| 72 | return fl::SuperSample::SUPER_SAMPLE_8X; |
| 73 | default: |
| 74 | return fl::SuperSample::SUPER_SAMPLE_NONE; |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | void triggerRipple(fl::WaveSimulation2D &waveSim) { |
| 79 | int x = random(WIDTH); |