IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
Color.h File Reference

Represent a color. More...

#include <IMP/display/display_config.h>
#include <IMP/Value.h>
#include <IMP/showable_macros.h>
#include <IMP/comparison_macros.h>
#include <IMP/check_macros.h>
#include <IMP/value_macros.h>
#include <array>
#include <cereal/access.hpp>
Include dependency graph for Color.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IMP::display::Color
 Represent an RGB color. More...

Namespaces

namespace  IMP
 Base functionality and abstract base classes for representation, scoring and sampling.
namespace  IMP::display
 Output IMP model data in various file formats.

Typedefs

typedef IMP::Vector< Color > IMP::display::Colors

Functions

Color IMP::display::get_display_color (unsigned int i)
Color IMP::display::get_interpolated_rgb (const Color &a, const Color &b, double f)
 Return a color interpolated between a and b in RGB space.
double IMP::display::get_linear_color_map_value (double min, double max, double value)

Colormaps

These functions map a number in the interval [0,1] to a color using some color map.

Color IMP::display::get_gnuplot_color (double f)
 Return colors using the gnuplot default color map.
Color IMP::display::get_gray_color (double f)
 Return the a grayscale value for f.
Color IMP::display::get_hot_color (double f)
 Return the color for f from the hot color map.
Color IMP::display::get_jet_color (double f)
 Return the color for f from the jet color map.
Color IMP::display::get_rgb_color (double f)
 Return the color for f from the RGB color map.

Detailed Description

Represent a color.

Copyright 2007-2022 IMP Inventors. All rights reserved.

Definition in file Color.h.