Lines Matching refs:x0
74 GFX::drawLine (int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color) { in drawLine() argument
75 int16_t steep = abs(y1 - y0) > abs(x1 - x0); in drawLine()
78 swap(x0, y0); in drawLine()
82 if (x0 > x1) { in drawLine()
83 swap(x0, x1); in drawLine()
88 dx = x1 - x0; in drawLine()
100 for (; x0 <= x1; x0++) { in drawLine()
102 setPixel(y0, x0, color); in drawLine()
104 setPixel(x0, y0, color); in drawLine()
115 GFX::drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t … in drawTriangle() argument
116 drawLine(x0, y0, x1, y1, color); in drawTriangle()
118 drawLine(x2, y2, x0, y0, color); in drawTriangle()
122 GFX::drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color) { in drawCircle() argument
129 setPixel(x0 , y0+r, color); in drawCircle()
130 setPixel(x0 , y0-r, color); in drawCircle()
131 setPixel(x0+r, y0 , color); in drawCircle()
132 setPixel(x0-r, y0 , color); in drawCircle()
145 setPixel(x0 + x, y0 + y, color); in drawCircle()
146 setPixel(x0 - x, y0 + y, color); in drawCircle()
147 setPixel(x0 + x, y0 - y, color); in drawCircle()
148 setPixel(x0 - x, y0 - y, color); in drawCircle()
149 setPixel(x0 + y, y0 + x, color); in drawCircle()
150 setPixel(x0 - y, y0 + x, color); in drawCircle()
151 setPixel(x0 + y, y0 - x, color); in drawCircle()
152 setPixel(x0 - y, y0 - x, color); in drawCircle()