From 1849a9b3c4cab7610e0880d233bdc22143a60839 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 10 Jun 2012 07:06:04 +0200 Subject: repo reorg --- px.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 px.c (limited to 'px.c') diff --git a/px.c b/px.c new file mode 100644 index 0000000..2c20418 --- /dev/null +++ b/px.c @@ -0,0 +1,20 @@ +#include +#include + +int main(int argc, char *argv[]) +{ + PixelWand *pix; + char *str; + char *col[] = {"rgb(0,0,0)", "rgb(80,80,80)", "rgb(255,255,255)", "rgb(999,999,999)", NULL}; + int i; + + pix = NewPixelWand(); + for (i=0 ; col[i] ; i++) + { + PixelSetColor(pix, col[i]); + str = PixelGetColorAsString(pix); + printf("%s = rgb(%s)\n", col[i], str); + } + DestroyPixelWand(pix); + return 0; +} -- cgit