]> Joshua Wise's Git repositories - mandelfpga.git/blob - makepal.c
Reg the init variables -- takes us to 83.842MHz! 8678 LUTs, 4694 slices post synthesis.
[mandelfpga.git] / makepal.c
1 void main()
2 {
3   unsigned char c = 0;
4   printf("GIMP Palette\n");
5   printf("Name: FPGA\n");
6   do
7   {
8     printf("%d %d %d\n",
9       (int)(255 * ((float)(c >> 5)) / 7.0),
10       (int)(255 * ((float)((c >> 2) & 0x7) / 7.0)),
11       (int)(255 * ((float)(c & 0x3) / 3.0)));
12     c++;
13   } while (c != 0);
14 }
This page took 0.026759 seconds and 4 git commands to generate.