Lines Matching refs:x0

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()
267 swap(x0, y0); in drawLine()
271 if (x0 > x1) { in drawLine()
272 swap(x0, x1); in drawLine()
277 dx = x1 - x0; in drawLine()
289 for (; x0 <= x1; x0++) { in drawLine()
291 drawPixel(y0, x0, color); in drawLine()
293 drawPixel(x0, y0, color); 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()
350 drawLine(x2, y2, x0, y0, 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
359 swap(y0, y1); swap(x0, x1); in drawTriangleFilled()
365 swap(y0, y1); swap(x0, x1); in drawTriangleFilled()
369 a = b = x0; in drawTriangleFilled()
379 dx01 = x1 - x0, in drawTriangleFilled()
381 dx02 = x2 - x0, in drawTriangleFilled()
399 a = x0 + sa / dy01; in drawTriangleFilled()
400 b = x0 + sb / dy02; in drawTriangleFilled()
417 b = x0 + sb / dy02; in drawTriangleFilled()
429 void EBOLED::drawCircle(int16_t x0, int16_t y0, int16_t radius, uint8_t color) in drawCircle() argument
437 drawPixel(x0 , y0+radius, color); in drawCircle()
438 drawPixel(x0 , y0-radius, color); in drawCircle()
439 drawPixel(x0+radius, y0 , color); in drawCircle()
440 drawPixel(x0-radius, y0 , color); in drawCircle()
455 drawPixel(x0 + x, y0 + y, color); in drawCircle()
456 drawPixel(x0 - x, y0 + y, color); in drawCircle()
457 drawPixel(x0 + x, y0 - y, color); in drawCircle()
458 drawPixel(x0 - x, y0 - y, color); in drawCircle()
459 drawPixel(x0 + y, y0 + x, color); in drawCircle()
460 drawPixel(x0 - y, y0 + x, color); in drawCircle()
461 drawPixel(x0 + y, y0 - x, color); in drawCircle()
462 drawPixel(x0 - y, y0 - x, color); in drawCircle()
466 void EBOLED::drawRoundCorners( int8_t x0, int8_t y0, int16_t radius, uint8_t cornername, uint8_t co… in drawRoundCorners() argument
483 drawPixel(x0 + x, y0 + y, color); in drawRoundCorners()
484 drawPixel(x0 + y, y0 + x, color); in drawRoundCorners()
487 drawPixel(x0 + x, y0 - y, color); in drawRoundCorners()
488 drawPixel(x0 + y, y0 - x, color); in drawRoundCorners()
491 drawPixel(x0 - y, y0 + x, color); in drawRoundCorners()
492 drawPixel(x0 - x, y0 + y, color); in drawRoundCorners()
495 drawPixel(x0 - y, y0 - x, color); in drawRoundCorners()
496 drawPixel(x0 - x, y0 - y, color); in drawRoundCorners()
501 void EBOLED::drawCircleFilled(int8_t x0, int8_t y0, int16_t radius, uint8_t color) { in drawCircleFilled() argument
502 drawLineVertical(x0, y0-radius, 2*radius+1, color); in drawCircleFilled()
503 drawRoundedCornersFilled(x0, y0, radius, 3, 0, color); in drawCircleFilled()
506 void EBOLED::drawRoundedCornersFilled(int8_t x0, int8_t y0, int16_t radius, uint8_t cornername, int… in drawRoundedCornersFilled() argument
525 drawLineVertical(x0+x, y0-y, 2*y+1+delta, color); in drawRoundedCornersFilled()
526 drawLineVertical(x0+y, y0-x, 2*x+1+delta, color); in drawRoundedCornersFilled()
529 drawLineVertical(x0-x, y0-y, 2*y+1+delta, color); in drawRoundedCornersFilled()
530 drawLineVertical(x0-y, y0-x, 2*x+1+delta, color); in drawRoundedCornersFilled()