MCPcopy Create free account
hub / github.com/MITK/MITK / MakeColor

Function MakeColor

Modules/Core/include/mitkColorProperty.h:40–45  ·  view source on GitHub ↗

* \brief Convenience function to create a Color from individual RGB components. * * \param[in] r Red component (0.0f to 1.0f). * \param[in] g Green component (0.0f to 1.0f). * \param[in] b Blue component (0.0f to 1.0f). * \return A Color initialized with the given RGB values. */

Source from the content-addressed store, hash-verified

38 * \return A Color initialized with the given RGB values.
39 */
40 inline Color MakeColor(float r, float g, float b)
41 {
42 Color color;
43 color.Set(r, g, b);
44 return color;
45 }
46
47 /**
48 * \brief Property for storing RGB color values.

Callers 3

SuggestNewLabelColorMethod · 0.50
setUpMethod · 0.50

Calls 1

SetMethod · 0.45

Tested by 1

setUpMethod · 0.40