Skip to content

Volvo2v1/Color-Variety

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color Variety - Color library for C programming language

Make your console applications pretty with variety of colors!

Compatible with:

  • Any shell with PS1 support //(PS1)

Building:

Local:

Building: make

Linking: gcc example.c clr.o

Include: #include "color.h"

System-wide:

Installing: make install

Linking: gcc example.c -lcolor

Include: #include <ykb39/color.h>

Uninstall: make uninstall

Sample usage:

// Local
#include "color.h"

// System-wide
#include <ykb39/color.h>

#include <stdio.h>

void main() {
    /* Print one line of red text: */
    printf_red("Red Text\n");

    /* Print one line of formatted text */
    int x = 3;
    printf_red("int x = %d\n", x);

    /* Init color (Colorize multiple lines): */
    clr_red();
    printf("First red line\n");
    printf("Second red line\n);
    
    /* Remove color output (reset color): */
    resetcolor();

    printf("This text is not red\n");
}

Screenshots

Basic Colors

Basic Colors

Bold Colors

Bold Colors

Special Colors

Special Colors

Support meeeeeh ;_;

YouTube

Donate <3