update templates

This commit is contained in:
Roy Qu 2022-07-24 10:27:24 +08:00
parent fdbf86e774
commit f0d2bf29a5
2 changed files with 4 additions and 4 deletions

View File

@ -175,9 +175,9 @@ void drawColor(Image* pImg, Font font, int x, int y, Color color, const char* co
char buffer[255]; char buffer[255];
ImageFillRectangleEx(pImg,x,y,200,40,color); ImageFillRectangleEx(pImg,x,y,200,40,color);
ImageDrawRectangleEx(pImg,x,y,200,40,2,BLACK); ImageDrawRectangleEx(pImg,x,y,200,40,2,BLACK);
ImageDrawTextEx(pImg,font,colorName,(Vector2){x+230,y+10},20,0,BLACK); ImageDrawTextEx(pImg,font,colorName,(Vector2){x+230,y+10},20,1,BLACK);
sprintf(buffer,"0x%02X%02X%02X",color.r,color.g,color.b); sprintf(buffer,"0x%02X%02X%02X",color.r,color.g,color.b);
ImageDrawTextEx(pImg,font,buffer,(Vector2){x+600,y+10},20,0,BLACK); ImageDrawTextEx(pImg,font,buffer,(Vector2){x+600,y+10},20,1,BLACK);
} }
void drawRedColors(Image *pImg,Font font) { void drawRedColors(Image *pImg,Font font) {

View File

@ -175,9 +175,9 @@ void drawColor(Image* pImg, Font font, int x, int y, Color color, const char* co
char buffer[255]; char buffer[255];
ImageFillRectangleEx(pImg,x,y,200,40,color); ImageFillRectangleEx(pImg,x,y,200,40,color);
ImageDrawRectangleEx(pImg,x,y,200,40,2,BLACK); ImageDrawRectangleEx(pImg,x,y,200,40,2,BLACK);
ImageDrawTextEx(pImg,font,colorName,(Vector2){x+230,y+10},20,0,BLACK); ImageDrawTextEx(pImg,font,colorName,(Vector2){x+230,y+10},20,1,BLACK);
sprintf(buffer,"0x%02X%02X%02X",color.r,color.g,color.b); sprintf(buffer,"0x%02X%02X%02X",color.r,color.g,color.b);
ImageDrawTextEx(pImg,font,buffer,(Vector2){x+600,y+10},20,0,BLACK); ImageDrawTextEx(pImg,font,buffer,(Vector2){x+600,y+10},20,1,BLACK);
} }
void drawRedColors(Image *pImg,Font font) { void drawRedColors(Image *pImg,Font font) {