( 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)
| 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 |
nothing calls this directly
no test coverage detected