Lines Matching refs:x0
69 command(0x0); // no offset
71 command(CMD_SETSTARTLINE | 0x0); // line #0
194 line = 0x0;
262 void EBOLED::drawLine(int8_t x0, int8_t y0, int8_t x1, int8_t y1, uint8_t color)
264 int16_t steep = abs(y1 - y0) > abs(x1 - x0);
267 swap(x0, y0);
271 if (x0 > x1) {
272 swap(x0, x1);
277 dx = x1 - x0;
289 for (; x0 <= x1; x0++) {
291 drawPixel(y0, x0, color);
293 drawPixel(x0, y0, color);
346 void EBOLED::drawTriangle(int8_t x0, int8_t y0, int8_t x1, int8_t y1, int8_t x2, int8_t y2, uint8_t color)
348 drawLine(x0, y0, x1, y1, color);
350 drawLine(x2, y2, x0, y0, color);
353 void EBOLED::drawTriangleFilled ( int8_t x0, int8_t y0, int8_t x1, int8_t y1, int8_t x2, int8_t y2, uint8_t color) {
359 swap(y0, y1); swap(x0, x1);
365 swap(y0, y1); swap(x0, x1);
369 a = b = x0;
379 dx01 = x1 - x0,
381 dx02 = x2 - x0,
399 a = x0 + sa / dy01;
400 b = x0 + sb / dy02;
404 a = x0 + (x1 - x0) * (y - y0) / (y1 - y0);
405 b = x0 + (x2 - x0) * (y - y0) / (y2 - y0);
417 b = x0 + sb / dy02;
422 b = x0 + (x2 - x0) * (y - y0) / (y2 - y0);
429 void EBOLED::drawCircle(int16_t x0, int16_t y0, int16_t radius, uint8_t color)
437 drawPixel(x0 , y0+radius, color);
438 drawPixel(x0 , y0-radius, color);
439 drawPixel(x0+radius, y0 , color);
440 drawPixel(x0-radius, y0 , color);
455 drawPixel(x0 + x, y0 + y, color);
456 drawPixel(x0 - x, y0 + y, color);
457 drawPixel(x0 + x, y0 - y, color);
458 drawPixel(x0 - x, y0 - y, color);
459 drawPixel(x0 + y, y0 + x, color);
460 drawPixel(x0 - y, y0 + x, color);
461 drawPixel(x0 + y, y0 - x, color);
462 drawPixel(x0 - y, y0 - x, color);
466 void EBOLED::drawRoundCorners( int8_t x0, int8_t y0, int16_t radius, uint8_t cornername, uint8_t color) {
483 drawPixel(x0 + x, y0 + y, color);
484 drawPixel(x0 + y, y0 + x, color);
487 drawPixel(x0 + x, y0 - y, color);
488 drawPixel(x0 + y, y0 - x, color);
491 drawPixel(x0 - y, y0 + x, color);
492 drawPixel(x0 - x, y0 + y, color);
495 drawPixel(x0 - y, y0 - x, color);
496 drawPixel(x0 - x, y0 - y, color);
501 void EBOLED::drawCircleFilled(int8_t x0, int8_t y0, int16_t radius, uint8_t color) {
502 drawLineVertical(x0, y0-radius, 2*radius+1, color);
503 drawRoundedCornersFilled(x0, y0, radius, 3, 0, color);
506 void EBOLED::drawRoundedCornersFilled(int8_t x0, int8_t y0, int16_t radius, uint8_t cornername, int16_t delta, uint8_t color) {
525 drawLineVertical(x0+x, y0-y, 2*y+1+delta, color);
526 drawLineVertical(x0+y, y0-x, 2*x+1+delta, color);
529 drawLineVertical(x0-x, y0-y, 2*y+1+delta, color);
530 drawLineVertical(x0-y, y0-x, 2*x+1+delta, color);