Lines Matching refs:y0
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()
273 swap(y0, y1); in drawLine()
278 dy = abs (y1 - y0); in drawLine()
283 if (y0 < y1) { in drawLine()
291 drawPixel(y0, x0, color); in drawLine()
293 drawPixel(x0, y0, color); in drawLine()
297 y0 += ystep; 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
358 if (y0 > y1) { in drawTriangleFilled()
359 swap(y0, y1); swap(x0, x1); in drawTriangleFilled()
364 if (y0 > y1) { in drawTriangleFilled()
365 swap(y0, y1); swap(x0, x1); in drawTriangleFilled()
368 if(y0 == y2) { // Handle awkward all-on-same-line case as its own thing in drawTriangleFilled()
374 drawLineHorizontal(a, y0, b-a+1, color); in drawTriangleFilled()
380 dy01 = y1 - y0, in drawTriangleFilled()
382 dy02 = y2 - y0, in drawTriangleFilled()
398 for(y=y0; y<=last; y++) { in drawTriangleFilled()
414 sb = dx02 * (y - y0); 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()