-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Macuyler/feature/replace-color
Add Feature: replace color
- Loading branch information
Showing
2 changed files
with
145 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
# color-mask | ||
This is a script that will take a png and transform all non-transparent pixels to a specified color. | ||
## Setup and Use | ||
This is a script that will mask a PNG image with a specified color. The default option will replace all non-transparent pixels with the inputed color, which is handy for editing single color icons. You can also replace a specified color inside the image using the `-r` (*replace*) option. | ||
|
||
## Get Started | ||
``` | ||
# Setup | ||
pip3 install -r requirements.txt | ||
./color-mask ./PATH_TO_INPUT_FILE ./PATH_FOR_OUTPUT '#HEXCODE' | ||
# Usage | ||
./color-mask ./PATH_TO_INPUT_FILE ./PATH_FOR_OUTPUT '#HEXCODE' [OPTIONS] | ||
(The Input file should be a PNG image) | ||
* OPTIONS: | ||
-s : Show a preview of the new Image at the end. | ||
-r '#HEXCODE' : Replace only pixels matching the following HEXCODE. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters