Lines Matching refs:x

180 void EBOLED::drawChar (uint8_t x, uint8_t y, uint8_t data, uint8_t color, uint8_t size) {  in drawChar()  argument
181 if( (x >= OLED_WIDTH) || // Clip right in drawChar()
183 ((x + 6 * size - 1) < 0) || // Clip left in drawChar()
204 drawPixel(x+i, y+j, color); in drawChar()
206 drawRectangleFilled(x+(i*size), y+(j*size), size, size, color); // big size in drawChar()
234 void EBOLED::drawPixel(int8_t x, int8_t y, uint8_t color) in drawPixel() argument
236 if(x<0 || x>=OLED_WIDTH || y<0 || y>=OLED_HEIGHT) in drawPixel()
251 screenBuffer[(x/2) + ((y/8) * VERT_COLUMNS)] ^= (1<<(y%8+(x%2 * 8))); in drawPixel()
254 screenBuffer[(x/2) + ((y/8) * VERT_COLUMNS)] |= (1<<(y%8+(x%2 * 8))); in drawPixel()
257 screenBuffer[(x/2) + ((y/8) * VERT_COLUMNS)] &= ~(1<<(y%8+(x%2 * 8))); in drawPixel()
303 void EBOLED::drawLineHorizontal(int8_t x, int8_t y, uint8_t width, uint8_t color) in drawLineHorizontal() argument
305 drawLine(x, y, x+width-1, y, color); in drawLineHorizontal()
308 void EBOLED::drawLineVertical(int8_t x, int8_t y, uint8_t height, uint8_t color) in drawLineVertical() argument
310 drawLine(x, y, x, y+height-1, color); in drawLineVertical()
313 void EBOLED::drawRectangle(int8_t x, int8_t y, uint8_t width, uint8_t height, uint8_t color) in drawRectangle() argument
315 drawLineHorizontal(x, y, width, color); in drawRectangle()
316 drawLineHorizontal(x, y+height-1, color); in drawRectangle()
321 drawLineVertical(x, y+1, innerHeight, color); in drawRectangle()
322 drawLineVertical(x+width-1, y+1, innerHeight, color); in drawRectangle()
326 void EBOLED::drawRoundedRectangle(int8_t x, int8_t y, int8_t width, int8_t height, int16_t radius, … in drawRoundedRectangle() argument
328 drawLineHorizontal(x+radius , y , width-2*radius, color); // Top in drawRoundedRectangle()
329 drawLineHorizontal(x+radius , y+height-1, width-2*radius, color); // Bottom in drawRoundedRectangle()
330 drawLineVertical( x , y+radius , height-2*radius, color); // Left in drawRoundedRectangle()
331 drawLineVertical( x+width-1 , y+radius , height-2*radius, color); // Right in drawRoundedRectangle()
333 drawRoundCorners(x+radius , y+radius , radius, 1, color); in drawRoundedRectangle()
334 drawRoundCorners(x+width-radius-1, y+radius , radius, 2, color); in drawRoundedRectangle()
335 drawRoundCorners(x+width-radius-1, y+height-radius-1, radius, 4, color); in drawRoundedRectangle()
336 drawRoundCorners(x+radius , y+height-radius-1, radius, 8, color); in drawRoundedRectangle()
339 void EBOLED::drawRectangleFilled(int8_t x, int8_t y, uint8_t width, uint8_t height, uint8_t color) in drawRectangleFilled() argument
341 for (uint8_t i=x; i<x+width; i++) { in drawRectangleFilled()
434 int16_t x = 0; in drawCircle() local
442 while (x<y) in drawCircle()
450 x++; 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()
470 int16_t x = 0; in drawRoundCorners() local
473 while (x<y) { in drawRoundCorners()
479 x++; in drawRoundCorners()
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()
511 int16_t x = 0; in drawRoundedCornersFilled() local
514 while (x<y) { in drawRoundedCornersFilled()
520 x++; in drawRoundedCornersFilled()
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()