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

Method line

core/src/processing/core/PGraphics.java:2456–2461  ·  view source on GitHub ↗

( begin auto-generated from line.xml ) Draws a line (a direct path between two points) to the screen. The version of line() with four parameters draws the line in 2D. To color a line, use the stroke() function. A line cannot be filled, therefore the fill() function will not af

(float x1, float y1, float x2, float y2)

Source from the content-addressed store, hash-verified

2454 * @see PGraphics#beginShape()
2455 */
2456 public void line(float x1, float y1, float x2, float y2) {
2457 beginShape(LINES);
2458 vertex(x1, y1);
2459 vertex(x2, y2);
2460 endShape();
2461 }
2462
2463 /**
2464 * @param z1 z-coordinate of the first point

Callers

nothing calls this directly

Calls 3

beginShapeMethod · 0.95
vertexMethod · 0.95
endShapeMethod · 0.95

Tested by

no test coverage detected