pseudocolor¶
Module that deals with color ramps
This product includes color specifications and designs developed by Cynthia Brewer (http://colorbrewer.org/).
This file uses the minify function, available from https://github.com/getify/JSON.minify
- tuiview.pseudocolor.HEXtoRGB(colorstring)[source]¶
Converts #RRGGBB to an (R, G, B) tuple, from http://code.activestate.com/recipes/266466-html-colors-tofrom-rgb-tuples/
- tuiview.pseudocolor.getLUTForRamp(code, name, lutsize)[source]¶
Returns an LUT for the specified color and name
- tuiview.pseudocolor.getRampsForDisplay()[source]¶
Returns a list of (name, displayname) tuples for populating Combo boxes. Sorted by type
- tuiview.pseudocolor.getRampsFromFile(fname)[source]¶
Read extra color ramps into our global RAMPS dictionary from specified file