-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converted Color Picker Script to Proper Module (#7)
* Added sample setup file * Created the setup file * Added a manifest file * Fixed issues related to pip * Fixed issues related to pathing * Added documentation * Changed image to URL * Updated version given documentation
- Loading branch information
Showing
15 changed files
with
68 additions
and
9 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 |
---|---|---|
|
@@ -102,6 +102,7 @@ celerybeat-schedule | |
.venv | ||
env/ | ||
venv/ | ||
venv38/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
recursive-include color_picker/assets * |
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,2 +1,21 @@ | ||
# color-picker | ||
|
||
|
||
The PSO2 color picker is a command line tool for generating the | ||
PSO2 color palette given some RGB value. Currently, this is a toy | ||
project that works as follows: | ||
|
||
1. Install the color-picker tool: `pip install pso2-color-picker` | ||
2. Execute the color-picker tool: `color-picker` | ||
3. Follow the prompts | ||
1. "Please provide file name (include .png)": [insert name of output file (e.g. nagatoro-hair.png)] | ||
2. "Please enter a color as comma-separated RGB" [insert color (e.g. 123, 234, 12)] | ||
|
||
If done correctly, a window should pop up with an image like the following: | ||
|
||
![Sample Green](https://raw.githubusercontent.com/jrg94/color-picker/master/samples/tomo.png) | ||
|
||
Likewise, a file will be saved at the location you ran the script with the | ||
file name you provided in Step 3i. | ||
|
||
Let us know if you like it! Given enough community support, we would be happy to | ||
extend this tool to be more user-friendly. |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import setuptools | ||
|
||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
setuptools.setup( | ||
name="pso2-color-picker", | ||
version="0.1.3", | ||
author="The Renegade Coder", | ||
author_email="jeremy.grifski@therenegadecoder.com", | ||
description="A color matching tool for PSO2.", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/jrg94/color-picker", | ||
packages=setuptools.find_packages(), | ||
include_package_data=True, | ||
python_requires=">=3.8", | ||
entry_points={ | ||
"console_scripts": [ | ||
'color-picker = color_picker.color_picker:main', | ||
], | ||
"gui_scripts": [ | ||
'image-titler-gui = imagetitler.gui:main', | ||
] | ||
}, | ||
classifiers=[ | ||
"Programming Language :: Python :: 3.8", | ||
"Operating System :: OS Independent", | ||
], | ||
install_requires=[ | ||
'pillow>=6.0.0', | ||
'numpy==1.19.3', | ||
], | ||
) |