Changeset 661 for libcaca/trunk/test
- Timestamp:
- Mar 22, 2006, 4:00:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/test/gamma.c
r659 r661 25 25 #include "caca.h" 26 26 27 uint32_t buffer[256 ];27 uint32_t buffer[256 * 4]; 28 28 29 29 int main(void) … … 39 39 40 40 for(x = 0; x < 256; x++) 41 { 41 42 buffer[x] = (x << 16) | (x << 8) | (x<< 0); 43 buffer[x + 256] = (0xff << 16) | (x << 8) | (0x00 << 0); 44 buffer[x + 512] = (0x00 << 16) | (0xff << 8) | (x << 0); 45 buffer[x + 768] = (x << 16) | (0x00 << 8) | (0xff << 0); 46 } 42 47 43 left = cucul_create_bitmap(qq, 32, 256, 1, 4 * 256,48 left = cucul_create_bitmap(qq, 32, 256, 4, 4 * 256, 44 49 0x00ff0000, 0x0000ff00, 0x000000ff, 0x0); 45 right = cucul_create_bitmap(qq, 32, 256, 1, 4 * 256,50 right = cucul_create_bitmap(qq, 32, 256, 4, 4 * 256, 46 51 0x00ff0000, 0x0000ff00, 0x000000ff, 0x0); 47 52 caca_set_delay(kk, 20000); … … 64 69 65 70 cucul_set_color(qq, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE); 66 cucul_printf(qq, 1, 2, "gamma%g", g);71 cucul_printf(qq, 2, 1, "gamma=%g", g); 67 72 68 73 caca_display(kk);
Note: See TracChangeset
for help on using the changeset viewer.