OpenCores
URL https://opencores.org/ocsvn/z3/z3/trunk

Subversion Repositories z3

[/] [z3/] [trunk/] [utils/] [makegradient.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 charcole
#include <stdio.h>
2
#include "gradient.h"
3
 
4
int main(int argc, char **argv)
5
{
6
        int i=0;
7
        while (i<32)
8
        {
9
                unsigned char r=header_data_cmap[header_data[i]][0];
10
                unsigned char g=header_data_cmap[header_data[i]][1];
11
                unsigned char b=header_data_cmap[header_data[i]][2];
12
                printf("@db $%04x;", ((r&0xF8)<<8)|((g&0xFC)<<5)|(b>>3));
13
                if ((i&3)==3)
14
                        printf("\n");
15
                else
16
                        printf(" ");
17
                i++;
18
        }
19
        return 0;
20
}
21
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.