MCPcopy Index your code
hub / github.com/processing/processing / curve

Method curve

core/src/processing/core/PGraphics.java:3636–3646  ·  view source on GitHub ↗

( begin auto-generated from curve.xml ) Draws a curved line on the screen. The first and second parameters specify the beginning control point and the last two parameters specify the ending control point. The middle parameters specify the start and stop of the curve. Longer curves can be created by

(float x1, float y1,
                    float x2, float y2,
                    float x3, float y3,
                    float x4, float y4)

Source from the content-addressed store, hash-verified

3634 * @see PGraphics#bezier(float, float, float, float, float, float, float, float, float, float, float, float)
3635 */
3636 public void curve(float x1, float y1,
3637 float x2, float y2,
3638 float x3, float y3,
3639 float x4, float y4) {
3640 beginShape();
3641 curveVertex(x1, y1);
3642 curveVertex(x2, y2);
3643 curveVertex(x3, y3);
3644 curveVertex(x4, y4);
3645 endShape();
3646 }
3647
3648 /**
3649 * @param z1 coordinates for the beginning control point

Callers

nothing calls this directly

Calls 3

beginShapeMethod · 0.95
curveVertexMethod · 0.95
endShapeMethod · 0.95

Tested by

no test coverage detected