()
| 57 | } |
| 58 | |
| 59 | const drawCircles = () => { |
| 60 | for (const s of state) { |
| 61 | myp5.push(); |
| 62 | myp5.translate(s.pos.x, s.pos.y); |
| 63 | const pts = 500; |
| 64 | myp5.beginShape(myp5.TRIANGLE_FAN); |
| 65 | myp5.vertex(0, 0); |
| 66 | for (let i = 0; i <= pts; i++) { |
| 67 | const a = (i / pts) * myp5.TWO_PI; |
| 68 | myp5.vertex(5 * myp5.cos(a), 5 * myp5.sin(a)); |
| 69 | } |
| 70 | myp5.endShape(); |
| 71 | myp5.pop(); |
| 72 | } |
| 73 | }; |
| 74 | |
| 75 | if (TEST_CPU_TRANSFORMS) { |
| 76 | // Flattens into a single buffer |
no test coverage detected