Browse Source
* Exported and hand-edited AutoColor.h. I eventually want this to be automatic, but I don't have time for now * Include stdbool for C support * Pack colors for C support * Link to libm for pow, roundmaster
8 changed files with 1066 additions and 9 deletions
File diff suppressed because it is too large
@ -0,0 +1,5 @@ |
|||
#!/bin/sh |
|||
|
|||
gcc -c main.c -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I../ -I../Dependencies/stb || exit $? |
|||
gcc -o auto-color-test main.o -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lm || exit $? |
|||
./auto-color-test |
@ -0,0 +1,13 @@ |
|||
#include <stdio.h> |
|||
|
|||
#include "AutoColor.h" |
|||
|
|||
int main() |
|||
{ |
|||
AutoColor base16Colors[16] = {0}; |
|||
if (!autoColorPickFromCurrentBackground(base16Colors)) |
|||
return 1; |
|||
fprintf(stderr, "The first color is RGB %d, %d, %d\n", base16Colors[0][0], base16Colors[0][1], |
|||
base16Colors[0][2]); |
|||
return 0; |
|||
} |
Loading…
Reference in new issue