Lines Matching refs:y

180 void EBOLED::drawChar (uint8_t x, uint8_t y, uint8_t data, uint8_t color, uint8_t size) {  in drawChar()  argument
182 (y >= OLED_HEIGHT) || // Clip bottom in drawChar()
184 ((y + 8 * size - 1) < 0)) // Clip top 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
342 drawLineVertical(i, y, height, color); in drawRectangleFilled()
355 int16_t a, b, y, last; in drawTriangleFilled() local
398 for(y=y0; y<=last; y++) { in drawTriangleFilled()
408 drawLineHorizontal(a, y, b-a+1, color); in drawTriangleFilled()
413 sa = dx12 * (y - y1); in drawTriangleFilled()
414 sb = dx02 * (y - y0); in drawTriangleFilled()
415 for(; y<=y2; y++) { in drawTriangleFilled()
425 drawLineHorizontal(a, y, b-a+1, color); in drawTriangleFilled()
435 int16_t y = radius; in drawCircle() local
442 while (x<y) in drawCircle()
446 y--; 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()
471 int16_t y = radius; in drawRoundCorners() local
473 while (x<y) { in drawRoundCorners()
475 y--; 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()
512 int16_t y = radius; in drawRoundedCornersFilled() local
514 while (x<y) { in drawRoundedCornersFilled()
516 y--; 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()