Skip to content

SabrinaSun1225/ChromaPalette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChromaPalette: A Versatile Scientific Color Palette Library

Are you tired of spending countless hours searching for the perfect color scheme for your scientific visualizations? Look no further! Introducing ChromaPalette - a comprehensive and versatile color palette library tailored for researchers and scientists. With 50 stunning and carefully designed color schemes, creating eye-catching and informative visualizations has never been easier!

Features

  • 50 Unique Color Schemes: Featuring a diverse range of color schemes, from gradient to low saturation, Morandi-inspired palettes, and vibrant, high contrast options.
  • Time Saving: Eliminate the need to search the internet for color palettes - ChromaPalette has you covered.
  • Designed for Science: Crafted specifically for the scientific community, each color scheme is suited for various types of data visualization.
  • Effortless Color Scheme Creation: Auto-generate custom color schemes with ChromaPalette. Simply choose a scheme and input the number of colors, and ChromaPalette takes care of the rest, seamlessly filling in gaps with gradient colors when needed. The possibilities are endless!
  • Color Code Conversion: ChromaPalette effortlessly converts between HEX and RGB color codes, allowing you to switch between formats depending on your needs. Create beautiful color schemes with ease and translate them seamlessly with ChromaPalette.

Color Schemes

  1. Coral

Coral SVG

  1. VanGogh

VanGogh SVG

  1. CafeTarrence

CafeTarrence SVG

  1. MintGradient

MintGradient SVG

  1. Candies

Candies SVG

  1. Macarons

Macarons SVG

  1. Matcha

Matcha SVG

  1. Melody

Melody SVG

  1. Lollipop

Lollipop SVG

  1. Sunrise

Sunrise SVG

  1. Monet

Monet SVG

  1. Waterlilies

Waterlilies SVG

  1. Sunflowers

Sunflowers SVG

  1. Irises

Irises SVG

  1. WheatFields

WheatFields SVG

  1. Serene

Serene SVG

  1. Elegant

Elegant SVG

  1. Vibrance

Vibrance SVG

  1. Radiant

Radiant SVG

  1. RoseGradient

RoseGradient SVG

  1. PurpleGradient

PurpleGradient SVG

  1. BlueGradient

BlueGradient SVG

  1. Retro

Retro SVG

  1. HarmonyMix

HarmonyMix SVG

  1. SimplePastel

SimplePastel SVG

  1. SoftVintage

SoftVintage SVG

  1. EasternHues

EasternHues SVG

  1. RelaxingPastel

RelaxingPastel SVG

  1. Lotus

Lotus SVG

  1. CalmBalance

CalmBalance SVG

  1. Eggplant

Eggplant SVG

  1. SeaSalt

SeaSalt SVG

  1. Enamel

Enamel SVG

  1. Pearwood

Pearwood SVG

  1. VintageBlend

VintageBlend SVG

  1. CozyBlue

CozyBlue SVG

  1. OrangeLatte

OrangeLatte SVG

  1. WatermelonSoda

WatermelonSoda SVG

  1. SoftSerenity

SoftSerenity SVG

  1. Westminster

Westminster SVG

  1. EarthyTones

EarthyTones SVG

  1. GracefulHues

GracefulHues SVG

  1. Pond

Pond SVG

  1. MutedBlend

MutedBlend SVG

  1. FlowerBed

FlowerBed SVG

  1. Turner

Turner SVG

  1. WarmHues

WarmHues SVG

  1. ColorBlocking

ColorBlocking SVG

  1. Porcelain

Porcelain SVG

  1. RetroComfort

RetroComfort SVG

Get Started

To start using ChromaPalette, simply clone or download the repository from GitHub and import it into your favorite data visualization tool.

git clone https://github.com/SabrinaSun1225/ChromaPalette

To install the package, please input

python setup.py install

You may update your PYTHONPATH with

export PYTHONPATH="put-your-path-here:$PYTHONPATH"

The following code can be used to import ChromaPalette:

from ChromaPalette.chroma_palette import *

To generate a list of colors from a color scheme, you can use the following code:

your_color_list = color_palette(name="Sunrise",N=8)

Here, "N" is the number of colors and "name" is the name of the color scheme.

If you have a HEX code, but you want its RGB code. You can use function "hex_to_rgb":

rgb = hex_to_rgb(hex)

To convert an RGB code (e.g., rgb=[R, G, B]) to a HEX code, you can use the 'rgb_to_hex' function:

hex = rgb_to_hex(rgb)

Colorblind-Friendly Visualizations

Please use the tool below to check that the color schemes you generate are colorblind-friendly

https://color.adobe.com/create/color-accessibility

Learn more about colorblind-friendly visualizations:

Check out this article from Nature for more information: https://www.nature.com/articles/d41586-021-02696-z

With ChromaPalette, you can elevate the aesthetics of your visualizations and captivate your audience. Don't wait - try ChromaPalette today and let your data speak for itself!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages