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

Method quad

core/src/processing/javafx/PGraphicsFX2D.java:733–755  ·  view source on GitHub ↗
(float x1, float y1, float x2, float y2,
                   float x3, float y3, float x4, float y4)

Source from the content-addressed store, hash-verified

731
732
733 @Override
734 public void quad(float x1, float y1, float x2, float y2,
735 float x3, float y3, float x4, float y4) {
736 beforeContextDraw();
737 if (drawingThinLines()) {
738 x1 += 0.5f;
739 x2 += 0.5f;
740 x3 += 0.5f;
741 x4 += 0.5f;
742 y1 += 0.5f;
743 y2 += 0.5f;
744 y3 += 0.5f;
745 y4 += 0.5f;
746 }
747 context.beginPath();
748 context.moveTo(x1, y1);
749 context.lineTo(x2, y2);
750 context.lineTo(x3, y3);
751 context.lineTo(x4, y4);
752 context.closePath();
753 if (fill) context.fill();
754 if (stroke) context.stroke();
755 }
756
757
758

Callers 1

vertexMethod · 0.95

Calls 7

beforeContextDrawMethod · 0.95
drawingThinLinesMethod · 0.95
closePathMethod · 0.80
moveToMethod · 0.45
lineToMethod · 0.45
fillMethod · 0.45
strokeMethod · 0.45

Tested by

no test coverage detected