tomodrgn.analysis.get_colors_chimerax#
- get_colors_chimerax(num_colors: int) list[tuple[float, float, float, float]] [source]#
Sample num_colors from the ChimeraX color scheme as RGBA tuples normalized [0,1].
- Parameters:
num_colors – the number of colors to sample from the color map. The first num_colors colors are sampled sequentially. If more colors are requested than exist in the ChimeraX color scheme, colors are repeated in order.
- Returns:
list of RGBA tuples for each color sampled from the color map.