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

Method line

core/src/processing/core/PApplet.java:11320–11323  ·  view source on GitHub ↗

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 affect the color of a line. 2D lines are d

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

Source from the content-addressed store, hash-verified

11318 * @see PGraphics#beginShape()
11319 */
11320 public void line(float x1, float y1, float x2, float y2) {
11321 if (recorder != null) recorder.line(x1, y1, x2, y2);
11322 g.line(x1, y1, x2, y2);
11323 }
11324
11325
11326 /**

Callers 2

drawPrimitiveMethod · 0.45
drawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected