Giter Site home page Giter Site logo

rdzudzar / colorextractor Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 1.0 1.77 MB

Color Extractor is a Web App that allows you to extract palettes of colors from various publicly available colormaps, as well as from your own created colormaps.

License: MIT License

Python 100.00%

colorextractor's Introduction

DA logo

Color Extractor

Streamlit App MIT License

Color Extractor is a Web App that allows you to extract palettes of colors from various publicly available colormaps, as well as from your own created colormaps.

At the moment Color Extractor contains 281 imported colormaps from 6 different Python packages. In adition, you can create an infinite combinations of your own colormaps.

How to use

Here is a link to YouTube for Color Extractor walkthrough: https://www.youtube.com/watch?v=77Xx3tIXyqI

Main options:

  • Extract colors from colormaps - Interactively explore and extract palette of colors from various colormaps.
  • Make your own colormap - Interactively select colors and create your own colormap.
  • Adjust extracted colors - Interactively adjust your selected palette of colors.

Extract colors from colormap

  • Select colormap page.
    • There are 6 colormap pages available
    • See References for each colormap page
  • Extract palette of colors from a colormap by clicking on colormap's button.
  • Use slider and number input to adjust selected colormap.
  • Copy HEX colors to clipboard and/or download palette as a Procreate .swatches file.
  • Inspect each colormap with viscm.

Make your own colormap

  • Select how many colors you want to combine into a colormap.
  • Click on the color pickers to select desired colors.
  • You can generate python code with your colormap
    • Copy code to clipboard and/or download .py code
  • You can extract palette of colors from your colormap
    • Chose number of colors you want to extract
    • Copy HEX colors to clipboard and/or download palette as a Procreate .swatches file.
  • You can inspect your colormap with viscm

Adjust extracted colors

  • Input a list of comma separated HEX colors
  • Click on individual color pickers to interactively adjust/change each of your colors
  • Copy HEX colors to clipboard and/or download palette as a Procreate .swatches file.

Use Color Extractor localy

Clone repository and run locally with Streamlit https://streamlit.io/: :

$ git clone https://github.com/rdzudzar/ColorExtractor.git
$ cd ColorExtractor
$ streamlit run main.py

Requirements:

Code is written in Python 3.9.7, below are the packages which are used in the code:

  • streamlit >= 1.5.0
  • matplotlib >= 3.4.3
  • numpy >= 1.20.3
  • cmasher >= 1.6.3
  • proplot >= 0.9.5
  • cmcrameri >= 1.4
  • cmocean >= 2.0
  • colorcet >= 3.0.0
  • arm_pyart >= 1.13.2

Structure

Color Extractor

├── main.py                  # Color Extractor page container
├── page_intro.py            # 1st Page in the Main app
├── page_extract_colors.py   # 2nd Page in the Main app and colormap page container
├── page_make_colormaps.py   # 3rd Page in the Main app
├── page_adjust_colors.py    # 4th Page in the Main app
├── functions.py             # Functions for extracting colors from colormaps

├── page_cmasher.py          # CMasher page container
├── page_cmocean.py          # Cmocean page container
├── page_colorcet.py         # Colorcet page container
├── page_crameri.py          # Crameri page container
├── page_matplotlib.py       # Matplotlib page container
├── page_pyart.py            # Py-ART page container
├── page_svivis.py           # SciVisColor page container

├── README.rst
├── requirements.txt         # List of used packages
└── LICENSE
│
├── Images
│   ├── CoEx_logo.png        # App logo
│   └── 7 other .png         # Images used on the introduction page

Community guidelines

Color Extractor is an open-source and free-to-use, provided under the MIT licence. If you like Color Extractor, please share it, star repo and feel free to open issues for any bugs/requests.

colorextractor's People

Contributors

rdzudzar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

kareemrasheed89

colorextractor's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.