mirror of
https://codeberg.org/JasterV/Color-Plotter.git
synced 2026-04-26 18:10:05 +00:00
readme created
This commit is contained in:
parent
f7b9f7f4d3
commit
1ef9e18692
3 changed files with 53 additions and 1 deletions
50
README.md
50
README.md
|
|
@ -1 +1,49 @@
|
||||||
# Word-Vectors-Basics
|
<h1 align="center">Welcome to Color Plotter 👋</h1>
|
||||||
|
<p>
|
||||||
|
<img alt="Version" src="https://img.shields.io/badge/version-1.0-blue.svg?cacheSeconds=2592000" />
|
||||||
|
<a href="https://www.mit.edu/~amini/LICENSE.md" target="_blank">
|
||||||
|
<img alt="License: MIT License" src="https://img.shields.io/badge/License-MIT License-yellow.svg" />
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
> A python script that ask for a color or its hexadecimal value and shows around 200 hundred similar colors
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
```python
|
||||||
|
pip install -r requeriments.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```python
|
||||||
|
python src/closest_color.py
|
||||||
|
```
|
||||||
|
|
||||||
|
Enter a color from the [colors list](https://xkcd.com/color/rgb/) or just enter an hexadecimal value
|
||||||
|
|
||||||
|
## Run tests
|
||||||
|
|
||||||
|
```python
|
||||||
|
python -m unittest discover test/
|
||||||
|
```
|
||||||
|
|
||||||
|
## Author
|
||||||
|
|
||||||
|
👤 **Víctor Martínez**
|
||||||
|
|
||||||
|
* Website: github.com/JasterV
|
||||||
|
* Github: [@JasterV](https://github.com/JasterV)
|
||||||
|
* LinkedIn: [@Víctor Martínez](https://www.linkedin.com/in/v%C3%ADctor-mart%C3%ADnez-3b8304196/)
|
||||||
|
|
||||||
|
## Show your support
|
||||||
|
|
||||||
|
Give a ⭐️ if this project helped you!
|
||||||
|
|
||||||
|
## 📝 License
|
||||||
|
|
||||||
|
Copyright © 2020 [Víctor Martínez](https://github.com/JasterV).<br />
|
||||||
|
This project is [MIT License](https://www.mit.edu/~amini/LICENSE.md) licensed.
|
||||||
|
|
||||||
|
***
|
||||||
|
_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_
|
||||||
3
requirements.txt
Normal file
3
requirements.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
matplotlib==3.1.3
|
||||||
|
numpy==1.18.1
|
||||||
|
requests==2.23.0
|
||||||
|
|
@ -78,6 +78,7 @@ if __name__ == '__main__':
|
||||||
color = colors[color]
|
color = colors[color]
|
||||||
else:
|
else:
|
||||||
color = hex_to_rgb(color)
|
color = hex_to_rgb(color)
|
||||||
|
|
||||||
ax = init_projection()
|
ax = init_projection()
|
||||||
plot_closest(ax, colors, color)
|
plot_closest(ax, colors, color)
|
||||||
plt.show()
|
plt.show()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue