All Projects → rcsb → Colorbrewer

rcsb / Colorbrewer

Licence: lgpl-2.1
🌈 Create color blind friendly color palettes in Java

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Colorbrewer

material-ui-color
The lightest colorpicker, palette, colorinput, colorbutton ⚡ No dependencies. It uses React hooks, support Typescript theming and more !
Stars: ✭ 125 (+331.03%)
Mutual labels:  color-palette, colorpicker
Colora
Color converter, screen color picker and color palettes for Windows
Stars: ✭ 32 (+10.34%)
Mutual labels:  color-palette, colorpicker
Pickr
🎨 Flat, simple, multi-themed, responsive and hackable Color-Picker library. No dependencies, no jQuery. Compatible with all CSS Frameworks e.g. Bootstrap, Materialize. Supports alpha channel, rgba, hsla, hsva and more!
Stars: ✭ 3,759 (+12862.07%)
Mutual labels:  color-palette, colorpicker
ColorPicker
Powerful screen ColorPicker/Chooser application for Linux Desktop
Stars: ✭ 55 (+89.66%)
Mutual labels:  color-palette, colorpicker
Egorozh.ColorPicker
🎨🎨🎨 Best of the best ColorPicker on WPF and AvaloniaUI
Stars: ✭ 39 (+34.48%)
Mutual labels:  color-palette, colorpicker
Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: ✭ 271 (+834.48%)
Mutual labels:  color-palette, colorpicker
Kallewheel
A custom color wheel extension for Adobe Photoshop
Stars: ✭ 16 (-44.83%)
Mutual labels:  color-palette, colorpicker
Chromacolorpicker
🎨 An intuitive iOS color picker built in Swift.
Stars: ✭ 434 (+1396.55%)
Mutual labels:  color-palette
Colorpicker
A highly customizable color picker for Android
Stars: ✭ 644 (+2120.69%)
Mutual labels:  colorpicker
Awesome Image Colorization
📚 A collection of Deep Learning based Image Colorization and Video Colorization papers.
Stars: ✭ 370 (+1175.86%)
Mutual labels:  color-palette
Sorted Colors
A tool to sort the named CSS colors in a way that it shows related colors together
Stars: ✭ 167 (+475.86%)
Mutual labels:  colorpicker
Vue Swatches
🎨 Help the user picking beautiful colors!
Stars: ✭ 456 (+1472.41%)
Mutual labels:  color-palette
Colorful
A curated list of awesome resources to choose your next color scheme
Stars: ✭ 702 (+2320.69%)
Mutual labels:  color-palette
Colorpickerpreference
🎨 A library that lets you implement ColorPicker, ColorPickerDialog, ColorPickerPreference.
Stars: ✭ 407 (+1303.45%)
Mutual labels:  colorpicker
Imguicolortextedit
Colorizing text editor for ImGui
Stars: ✭ 772 (+2562.07%)
Mutual labels:  color-palette
Material Cards
Card style based on Google Material color palette
Stars: ✭ 370 (+1175.86%)
Mutual labels:  color-palette
Paletti
Create a color palette from an image
Stars: ✭ 22 (-24.14%)
Mutual labels:  color-palette
Colorpicker
A mininal but complete colorpicker desktop app
Stars: ✭ 766 (+2541.38%)
Mutual labels:  colorpicker
Androidpicker
安卓选择器类库,包括日期及时间选择器(可用于出生日期、营业时间等)、单项选择器(可用于性别、民族、职业、学历、星座等)、二三级联动选择器(可用于车牌号、基金定投日期等)、城市地址选择器(分省级、地市级及区县级)、数字选择器(可用于年龄、身高、体重、温度等)、日历选日期择器(可用于酒店及机票预定日期)、颜色选择器、文件及目录选择器、图片选择器等……WheelPicker/DatePicker/TimePicker/OptionPicker/NumberPicker/LinkagePicker/AddressPicker/CarPlatePicker/CalendarPicker/ColorPicker/FilePicker/ImagePicker etc.
Stars: ✭ 5,320 (+18244.83%)
Mutual labels:  colorpicker
Paletteer
🎨🎨🎨 Collection of most color palettes in a single R package
Stars: ✭ 535 (+1744.83%)
Mutual labels:  color-palette

Colorbrewer

Build Status Version License

Create color blind friendly color palettes in Java.

The color palettes provided by this library are based on the colors provided by the [color brewer project] (http://colorbrewer.org/),

In principle there are three types of palettes provided:

  • Sequential example

  • Diverging example

  • Qualitative example

For each palette any number of steps (=colors) in the palette can be requested.

How to Use

Show a user Dialog

	final ColorPaletteChooserDialog dialog = new ColorPaletteChooserDialog();
	dialog.show();
	if(dialog.wasOKPressed()) {
		Color c = dialog.getColor();
	}

will display this dialog:

Screenshot of a ColorPaletteChooserDIalog

Create a palette programmatically

Get a color palette with a specific number of color:

	boolean colorBlindSave = true;
		ColorBrewer[] sequentialPalettes = ColorBrewer.getSequentialColorPalettes(colorBlindSave);	


		ColorBrewer myBrewer = sequentialPalettes[0];

		System.out.println( "Name of this color brewer: " + myBrewer);

		// I want a gradient of 8 colors:
		Color[] myGradient = myBrewer.getColorPalette(8);

		// These are the color codes:
		for (Color color: myGradient){
			// convert to hex for web display:
			String hex = Integer.toHexString(color.getRGB() & 0xffffff);			
			System.out.println("#"+hex+";");
		}
		
		return myGradient;
	
	

This provides the following 8 blue colors: The 'Blues' color palette

Installation

This project is now hosted on Maven Central. You can install the jar file by adding this to your project configuration:

<dependencies>
 <dependency>
  <groupId>org.biojava</groupId>
  <artifactId>jcolorbrewer</artifactId>
  <version>5.2</version>
 </dependency>
</dependencies>

Example Application

Here we are coloring the various components of the virus structure of the human poliovirus ( PDB ID 3J69 ) .

PDB ID 3J69

Acknowledgments

Colors from www.ColorBrewer.org by Cynthia A. Brewer, Geography, Pennsylvania State University.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].