Changeset 678 for libcaca/trunk/test
- Timestamp:
- Mar 23, 2006, 3:07:32 PM (15 years ago)
- Location:
- libcaca/trunk/test
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/test/demo.c
r677 r678 242 242 j = 15 + sin(0.03*i) * 8; 243 243 cucul_set_color(qq, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLACK); 244 cucul_fill_ellipse(qq, xo, yo, j, j / 2, '#');244 cucul_fill_ellipse(qq, xo, yo, j, j / 2, "#"); 245 245 cucul_set_color(qq, CUCUL_COLOR_YELLOW, CUCUL_COLOR_BLACK); 246 cucul_draw_ellipse(qq, xo, yo, j, j / 2, '#');246 cucul_draw_ellipse(qq, xo, yo, j, j / 2, "#"); 247 247 248 248 /* Draw the pyramid */ … … 260 260 261 261 cucul_set_color(qq, CUCUL_COLOR_GREEN, CUCUL_COLOR_BLACK); 262 cucul_fill_triangle(qq, xo, yo, xb, yb, xa, ya, '%');262 cucul_fill_triangle(qq, xo, yo, xb, yb, xa, ya, "%"); 263 263 cucul_set_color(qq, CUCUL_COLOR_YELLOW, CUCUL_COLOR_BLACK); 264 264 cucul_draw_thin_triangle(qq, xo, yo, xb, yb, xa, ya); 265 265 266 266 cucul_set_color(qq, CUCUL_COLOR_RED, CUCUL_COLOR_BLACK); 267 cucul_fill_triangle(qq, xa, ya, xb, yb, xc, yc, '#');267 cucul_fill_triangle(qq, xa, ya, xb, yb, xc, yc, "#"); 268 268 cucul_set_color(qq, CUCUL_COLOR_YELLOW, CUCUL_COLOR_BLACK); 269 269 cucul_draw_thin_triangle(qq, xa, ya, xb, yb, xc, yc); 270 270 271 271 cucul_set_color(qq, CUCUL_COLOR_BLUE, CUCUL_COLOR_BLACK); 272 cucul_fill_triangle(qq, xo, yo, xb, yb, xc, yc, '%');272 cucul_fill_triangle(qq, xo, yo, xb, yb, xc, yc, "%"); 273 273 cucul_set_color(qq, CUCUL_COLOR_YELLOW, CUCUL_COLOR_BLACK); 274 274 cucul_draw_thin_triangle(qq, xo, yo, xb, yb, xc, yc); … … 374 374 cucul_draw_thin_line(qq, xa, ya, xb, yb); 375 375 else 376 cucul_draw_line(qq, xa, ya, xb, yb, '#');376 cucul_draw_line(qq, xa, ya, xb, yb, "#"); 377 377 } 378 378 … … 395 395 396 396 cucul_set_color(qq, cucul_rand(0, 15), cucul_rand(0, 15)); 397 cucul_fill_box(qq, xa, ya, xb, yb, '#');397 cucul_fill_box(qq, xa, ya, xb, yb, "#"); 398 398 399 399 cucul_set_color(qq, cucul_rand(0, 15), CUCUL_COLOR_BLACK); … … 401 401 cucul_draw_thin_box(qq, xa, ya, xb, yb); 402 402 else if(outline == 1) 403 cucul_draw_box(qq, xa, ya, xb, yb, '#');403 cucul_draw_box(qq, xa, ya, xb, yb, "#"); 404 404 } 405 405 … … 426 426 427 427 cucul_set_color(qq, cucul_rand(0, 15), cucul_rand(0, 15)); 428 cucul_fill_ellipse(qq, x, y, a, b, '#');428 cucul_fill_ellipse(qq, x, y, a, b, "#"); 429 429 430 430 cucul_set_color(qq, cucul_rand(0, 15), CUCUL_COLOR_BLACK); … … 432 432 cucul_draw_thin_ellipse(qq, x, y, a, b); 433 433 else if(outline == 1) 434 cucul_draw_ellipse(qq, x, y, a, b, '#');434 cucul_draw_ellipse(qq, x, y, a, b, "#"); 435 435 } 436 436 … … 456 456 457 457 cucul_set_color(qq, cucul_rand(0, 15), cucul_rand(0, 15)); 458 cucul_fill_triangle(qq, xa, ya, xb, yb, xc, yc, '#');458 cucul_fill_triangle(qq, xa, ya, xb, yb, xc, yc, "#"); 459 459 460 460 cucul_set_color(qq, cucul_rand(0, 15), CUCUL_COLOR_BLACK); … … 462 462 cucul_draw_thin_triangle(qq, xa, ya, xb, yb, xc, yc); 463 463 else if(outline == 1) 464 cucul_draw_triangle(qq, xa, ya, xb, yb, xc, yc, '#');464 cucul_draw_triangle(qq, xa, ya, xb, yb, xc, yc, "#"); 465 465 } 466 466 -
libcaca/trunk/test/event.c
r677 r678 41 41 42 42 cucul_set_color(qq, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE); 43 cucul_draw_line(qq, 0, 0, cucul_get_width(qq) - 1, 0, ' ');43 cucul_draw_line(qq, 0, 0, cucul_get_width(qq) - 1, 0, " "); 44 44 45 cucul_draw_line(qq, 0, h, cucul_get_width(qq) - 1, h, ' ');45 cucul_draw_line(qq, 0, h, cucul_get_width(qq) - 1, h, " "); 46 46 cucul_putstr(qq, 0, h, "type \"quit\" to exit"); 47 47 … … 85 85 /* Print current event */ 86 86 cucul_set_color(qq, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE); 87 cucul_draw_line(qq, 0, 0, cucul_get_width(qq) - 1, 0, ' ');87 cucul_draw_line(qq, 0, 0, cucul_get_width(qq) - 1, 0, " "); 88 88 print_event(0, 0, events[0]); 89 89 90 cucul_draw_line(qq, 0, h, cucul_get_width(qq) - 1, h, ' ');90 cucul_draw_line(qq, 0, h, cucul_get_width(qq) - 1, h, " "); 91 91 cucul_printf(qq, 0, h, "type \"quit\" to exit: %s", quit_string[quit]); 92 92 -
libcaca/trunk/test/export.c
r677 r678 92 92 93 93 cucul_set_color(qq, CUCUL_COLOR_BLACK, CUCUL_COLOR_WHITE); 94 cucul_fill_ellipse(qq, WIDTH / 2, HEIGHT / 2, WIDTH / 4, HEIGHT / 4, ' ');94 cucul_fill_ellipse(qq, WIDTH / 2, HEIGHT / 2, WIDTH / 4, HEIGHT / 4, " "); 95 95 cucul_putstr(qq, WIDTH / 2 - 5, HEIGHT / 2 - 2, "(\") \\o/ <&>"); 96 96 cucul_putstr(qq, WIDTH / 2 - 7, HEIGHT / 2 + 2, "äβç ░▒▓█▓▒░ ΔЗҒ"); -
libcaca/trunk/test/spritedit.c
r677 r678 101 101 yb = ya + 1 + cucul_get_sprite_height(qq, sprite, frame); 102 102 cucul_set_color(qq, CUCUL_COLOR_BLACK, CUCUL_COLOR_BLACK); 103 cucul_fill_box(qq, 57 + xa, 10 + ya, 57 + xb, 10 + yb, ' ');103 cucul_fill_box(qq, 57 + xa, 10 + ya, 57 + xb, 10 + yb, " "); 104 104 cucul_set_color(qq, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK); 105 105 cucul_draw_thin_box(qq, 57 + xa, 10 + ya, 57 + xb, 10 + yb);
Note: See TracChangeset
for help on using the changeset viewer.