/gradient

C Program to print a gradient to the screen

Primary LanguageC

Gradient in Terminal

A C program which prints an animated linear gradient


Usage

Run make in the src/ directory to build the program, then either run make run to execute it or run make install to copy the binary to /usr/local/bin/.

It currently runs at 60FPS, if your terminal cannot handle it you might want to use Alacritty.

I will add an FPS option in the future.


By default it will have a pinkish and a cyanish color as the initial values.

You can give your own colors: bin/main "#xxxxxx" "#xxxxxx" where #xxxxxx is a six digit hexadecimal number corresponding to the RGB value you want.

#FF00FF would be Magenta.

Or a weirder syntax with rgb(R, G, B) where all three RGB values are in the range [0, 255]

You can edit the Makefile to change the installation location and the binary name.

Screenshot Because Asciinema is acting up

Default Look

Default 2

User Entered Colors