libansilove

Library for converting ANSI, ASCII, and other formats to PNG
Log | Files | Refs | README | LICENSE

example.c (270B)


      1 #include <ansilove.h>
      2 
      3 int
      4 main()
      5 {
      6 	struct ansilove_ctx ctx;
      7 	struct ansilove_options options;
      8 
      9 	ansilove_init(&ctx, &options);
     10 
     11 	ansilove_loadfile(&ctx, "example.c");
     12 
     13 	ansilove_ansi(&ctx, &options);
     14 
     15 	ansilove_savefile(&ctx, "example.png");
     16 
     17 	ansilove_clean(&ctx);
     18 }