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

tuiview.pseudocolor.loadExtraRamps()[source]

Try to load extra colour ramps from file spcified by EXTRA_RAMP_VAR env variable. Checks that we haven’t done it before so we don’t have duplicates