MCPcopy Index your code
hub / github.com/benfry/processing4 / curve

Method curve

core/src/processing/core/PGraphics.java:3731–3741  ·  view source on GitHub ↗

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 putting a series of curve() funct

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

Source from the content-addressed store, hash-verified

3729 * @see PGraphics#bezier(float, float, float, float, float, float, float, float, float, float, float, float)
3730 */
3731 public void curve(float x1, float y1,
3732 float x2, float y2,
3733 float x3, float y3,
3734 float x4, float y4) {
3735 beginShape();
3736 curveVertex(x1, y1);
3737 curveVertex(x2, y2);
3738 curveVertex(x3, y3);
3739 curveVertex(x4, y4);
3740 endShape();
3741 }
3742
3743 /**
3744 * @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