##// END OF EJS Templates
Merge branch 'feature/CatalogueCatalogue' of https://hephaistos.lpp.polytechnique.fr/rhodecode/GIT_REPOSITORIES/LPP/Users/mperrinel/SciQLop-fork into feature/CatalogueCatalogue...
Merge branch 'feature/CatalogueCatalogue' of https://hephaistos.lpp.polytechnique.fr/rhodecode/GIT_REPOSITORIES/LPP/Users/mperrinel/SciQLop-fork into feature/CatalogueCatalogue # Conflicts: # core/include/Catalogue/CatalogueController.h # gui/src/Visualization/VisualizationGraphWidget.cpp

File last commit:

r584:17624d030c39
r1358:3e0e1e37ac63 merge feature/Catalogue...
Show More
ColorUtils.h
19 lines | 569 B | text/x-c | CLexer
#ifndef SCIQLOP_COLORUTILS_H
#define SCIQLOP_COLORUTILS_H
#include <vector>
class QColor;
/**
* Utility class with methods for colors
*/
struct ColorUtils {
/// Generates a color scale from min / max values and a number of colors.
/// The algorithm uses the HSV color model to generate color variations (see
/// http://doc.qt.io/qt-4.8/qcolor.html#the-hsv-color-model)
static std::vector<QColor> colors(const QColor &minColor, const QColor &maxColor,
int nbColors) noexcept;
};
#endif // SCIQLOP_COLORUTILS_H