Skip to content
Gregory McIntyre edited this page Nov 7, 2013 · 3 revisions
// house.c
// 
// Compile this file with the following command:
//
//   gcc house.c -o house
//

#include <stdio.h>

int main(void) {
    char *red = "\\033[1;31m";
    char *green = "\\033[1;32m";
    char *blue = "\\033[1;34m";
    char *reset = "\\033[0m";

    printf("%s%s%s\n", red, "Hi there", reset);
    printf("%s%s%s\n", green, "Hi there", reset);
    printf("%s%s%s\n", blue, "Hi there", reset);

    // now draw a house or some other picture you like

    // for bonus points, animate something

    return 0;
}
Clone this wiki locally