graphicsutil

Graphics utilities.

AUTHORS:

  • THOMAS MCTAVISH (2011-09-23): initial version, 0.1
neuronpy.util.graphicsutil.alpha_color_to_rgb(color, alpha, background='white')[source]

Since EPS files do not permit the drawing of transparency, this method converts a color and its alpha value into a standard RGB color against a background. :param color: Opaque Matplotlib color to convert. :param alpha: Normalized alpha value (0=transparent, 1=opaque) :param background: Opaque Matplotlib background color. :return: RGB value as normalized list of 3 floats.

Previous topic

dictdb

Next topic

<no title>

This Page