Rose
Public Member Functions | List of all members
rose::color::Value Struct Reference

The actual value of a color. More...

#include <Color.h>

Inheritance diagram for rose::color::Value:
Inheritance graph
[legend]
Collaboration diagram for rose::color::Value:
Collaboration graph
[legend]

Public Member Functions

constexpr Value () noexcept
 Constructor, initialize color to transparent black.
 
constexpr Value (std::array< float, 4 > v) noexcept
 
constexpr Value () noexcept
 Constructor, initialize color to transparent black.
 
constexpr Value (std::array< float, 4 > v) noexcept
 

Detailed Description

The actual value of a color.

The value of a color is an array of four float values. How these values are interpreted depends of the type interpretation of the value. All for values are in the range [0..1], For RBBA they are Red, Green, Blue and Alpha. For HSVA they are Hue, Saturation, Value and Alpha but the Hue value is mapped into [0..360] before use.


The documentation for this struct was generated from the following file: