get equal distance points on bezier
in
Programming Questions
•
1 year ago
with bezierPoint the distance between the points is not equal.
Is there a way to get equal distance points?
- void setup() {
- size(600, 600);
- noFill();
- bezier(255, 60, 30, 30, 0, 0, 45, 240);
- fill(255);
- int steps = 10;
- for (int i = 0; i <= steps; i++) {
- float t = i / float(steps);
- float x = bezierPoint(255, 30, 0, 45, t);
- float y = bezierPoint(60, 30, 0, 240, t);
- ellipse(x, y, 5, 5);
- }
- }
1