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

Method line

core/src/processing/core/PApplet.java:12024–12027  ·  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

12022 * @see PGraphics#beginShape()
12023 */
12024 public void line(float x1, float y1, float x2, float y2) {
12025 if (recorder != null) recorder.line(x1, y1, x2, y2);
12026 g.line(x1, y1, x2, y2);
12027 }
12028
12029
12030 /**

Callers 2

drawPrimitiveMethod · 0.45
drawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected