From: hackbard Date: Thu, 6 Oct 2005 15:07:42 +0000 (+0000) Subject: tool to create a color fade table X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fnlsop.git;a=commitdiff_plain;h=228154b9c5ef05a4393a7a41d2f6b45675c9feed;ds=sidebyside tool to create a color fade table --- diff --git a/create_color_table.c b/create_color_table.c new file mode 100644 index 0000000..aaa1e8c --- /dev/null +++ b/create_color_table.c @@ -0,0 +1,60 @@ +/* + * unable to use gimp? + * me too! + * + */ + +#include +#include "bmp.h" + +int main(int argc,char **argv) { + + t_bmp bmp; + int i,j; + char val; + int off; + + bmp_init(&bmp,2); + + bmp.width=40; + bmp.height=120; + bmp.mode=WRITE; + if(argv[1][0]=='c') strcpy(bmp.file,"c-col.bmp"); + else strcpy(bmp.file,"p-col.bmp"); + + bmp_alloc_map(&bmp); + + for(i=0;i