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

Method line

core/src/processing/javafx/PGraphicsFX2D.java:698–708  ·  view source on GitHub ↗
(float x1, float y1, float x2, float y2)

Source from the content-addressed store, hash-verified

696
697
698 @Override
699 public void line(float x1, float y1, float x2, float y2) {
700 beforeContextDraw();
701 if (drawingThinLines()) {
702 x1 += 0.5f;
703 x2 += 0.5f;
704 y1 += 0.5f;
705 y2 += 0.5f;
706 }
707 context.strokeLine(x1, y1, x2, y2);
708 }
709
710
711 @Override

Callers 2

vertexMethod · 0.95
pointMethod · 0.95

Calls 2

beforeContextDrawMethod · 0.95
drawingThinLinesMethod · 0.95

Tested by

no test coverage detected