Drawing part of a Bézier curve by reusing a basic Bézier-curve-function?
Assuming I'm using some graphic API which allows me to draw bezier curves by specifying the 4 necessary points: start, end, two control points . Can I reuse this function to draw x percent of the 'original' curve (by adjusting the control points and the end point)? Or is it impossible? Unnecessary information, should someone care: I need the whole thing to draw every n % of the original bezier curve with different color and/or line style I'm using Java's Path2D to draw bezier curves: Path2D p = new GeneralPath(); p.moveTo(x1, y1); p.curveTo(bx1, by1, bx2, by2, x2, y2); g2.draw(p); What you