Belle II Software development
Colors.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <vector>
11#include <array>
12#include <string>
13
14namespace Belle2 {
19 namespace TrackFindingCDC {
20
22 class Colors {
23 public:
25 static std::vector<std::string> getList();
26
27 public:
29 static double hueToRgb(double p, double q, double t);
30
39 static std::array<double, 3> hlsToRgb(double h, double l, double s);
40
46 static std::string getWheelColor(int degree);
47 };
48 }
50}
Utility functions related to colors.
Definition: Colors.h:22
static std::string getWheelColor(int degree)
Get a color from the wheel of colors.
Definition: Colors.cc:71
static double hueToRgb(double p, double q, double t)
Transforms a Color given in the HLS System to RGB.
Definition: Colors.cc:40
static std::array< double, 3 > hlsToRgb(double h, double l, double s)
Transforms a Color given in the HLS System to RGB.
Definition: Colors.cc:56
static std::vector< std::string > getList()
Get a list of useful colors.
Definition: Colors.cc:15
Abstract base class for different kinds of events.