Skip to content

A simple c program that replaces hex color codes in different source/txt files with their grayscale counterparts

License

Notifications You must be signed in to change notification settings

jakgra/color-to-grayscale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Replace hex color codes with their grayscale counterparts in all text files

Disclaimer

Attention. Use at your own risk, make a backup of all the files passed to the program. If you run out of RAM, some files will be lost otherwise.

Installation

To build:

git clone https://github.com/jakgra/color-to-grayscale
cd color-to-grayscale
git clone https://github.com/jakgra/toolbox
git clone https://github.com/websnarf/bstrlib
./build.sh

To install:

sudo cp color_to_grayscale /somewhere/on/your/PATH/

Usage

For example, to replace the color codes for all css and svg files in the current directory run this in a terminal.

color_to_grayscale *.css *.svg

About

A simple c program that replaces hex color codes in different source/txt files with their grayscale counterparts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published