diff options
author | axtloss <axtlos@getcryst.al> | 2024-02-25 14:42:49 +0100 |
---|---|---|
committer | axtloss <axtlos@getcryst.al> | 2024-02-25 14:42:49 +0100 |
commit | 997368fe5f7ae8651982d0ba509bb54051b54e34 (patch) | |
tree | 7aa0e232ebf095b26981cc206affe6ed3519818c /fbwarn/src/warn.c | |
parent | 507d58d48f3e99f5fd45171cdbadd9c690f47fe1 (diff) | |
download | fsverify-997368fe5f7ae8651982d0ba509bb54051b54e34.tar.gz fsverify-997368fe5f7ae8651982d0ba509bb54051b54e34.tar.bz2 |
Expand rectangle function with fill arg
Diffstat (limited to 'fbwarn/src/warn.c')
-rw-r--r-- | fbwarn/src/warn.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fbwarn/src/warn.c b/fbwarn/src/warn.c index 1f946cc..1589e48 100644 --- a/fbwarn/src/warn.c +++ b/fbwarn/src/warn.c @@ -6,39 +6,39 @@ int main(void) { char *rectA, *rectB, *rectC, *rectAFree, *rectBFree, *rectCFree, *singleA, *singleB, *singleC; - rectAFree = rectA = strdup("rectangle (x=0,y=0,\nwidth=100,\nheight=100,\ncolor='#5BCEFA')\n"); + rectAFree = rectA = strdup("rectangle (x=0,y=0,\nwidth=100,\nheight=100,\ncolor='#9787CFFF',\nfill=true,\nthickness=1.0)\n"); if (rectA == NULL) return 1; singleA = multiToSingle(rectA); free(rectAFree); - rectBFree = rectB = strdup("rectangle (x=0,y=20,\nwidth=100,\nheight=60,\ncolor='#F5A9B8')\n"); + rectBFree = rectB = strdup("rectangle (x=0,y=20,\nwidth=100,\nheight=60,\ncolor='#88C2B1FF',\nfill=false,\nthickness=5.0)\n"); if (rectB == NULL) return 1; singleB = multiToSingle(rectB); free(rectBFree); - rectCFree = rectC = strdup("rectangle (x=0,y=40,\nwidth=100,\nheight=20,\ncolor='#FFFFFF')\n"); + rectCFree = rectC = strdup("rectangle (x=0,y=40,\nwidth=100,\nheight=20,\ncolor='#BE79A7FF',\nfill=true,\nthickness=3.0)\n"); if (rectC == NULL) return 1; singleC = multiToSingle(rectC); free(rectCFree); - + InitWindow (100, 100, ":3"); while (!WindowShouldClose ()) { + BeginDrawing (); ClearBackground (RAYWHITE); - char *parseA = strdup(singleA); matchFunctionCall(parseA); - + char *parseB = strdup(singleB); matchFunctionCall(parseB); - + char *parseC = strdup(singleC); matchFunctionCall(parseC); - DrawText ("tranmsgenmer", 15, 50, 10, MAROON); + EndDrawing (); } |