Lines Matching refs:y1
262 void EBOLED::drawLine(int8_t x0, int8_t y0, int8_t x1, int8_t y1, uint8_t color) in drawLine() argument
264 int16_t steep = abs(y1 - y0) > abs(x1 - x0); in drawLine()
268 swap(x1, y1); in drawLine()
273 swap(y0, y1); in drawLine()
278 dy = abs (y1 - y0); in drawLine()
283 if (y0 < y1) { in drawLine()
346 void EBOLED::drawTriangle(int8_t x0, int8_t y0, int8_t x1, int8_t y1, int8_t x2, int8_t y2, uint8_t… in drawTriangle() argument
348 drawLine(x0, y0, x1, y1, color); in drawTriangle()
349 drawLine(x1, y1, x2, y2, color); in drawTriangle()
353 void EBOLED::drawTriangleFilled ( int8_t x0, int8_t y0, int8_t x1, int8_t y1, int8_t x2, int8_t y2,… in drawTriangleFilled() argument
358 if (y0 > y1) { in drawTriangleFilled()
359 swap(y0, y1); swap(x0, x1); in drawTriangleFilled()
361 if (y1 > y2) { in drawTriangleFilled()
362 swap(y2, y1); swap(x2, x1); in drawTriangleFilled()
364 if (y0 > y1) { in drawTriangleFilled()
365 swap(y0, y1); swap(x0, x1); in drawTriangleFilled()
380 dy01 = y1 - y0, in drawTriangleFilled()
384 dy12 = y2 - y1; in drawTriangleFilled()
395 if(y1 == y2) last = y1; // Include y1 scanline in drawTriangleFilled()
396 else last = y1-1; // Skip it in drawTriangleFilled()
413 sa = dx12 * (y - y1); in drawTriangleFilled()