(float x1, float y1, float x2, float y2,
float x3, float y3, float x4, float y4)
| 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 |
no test coverage detected