From 228154b9c5ef05a4393a7a41d2f6b45675c9feed Mon Sep 17 00:00:00 2001 From: hackbard Date: Thu, 6 Oct 2005 15:07:42 +0000 Subject: [PATCH] tool to create a color fade table --- create_color_table.c | 60 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 create_color_table.c 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