Audacity 3.2.0
Classes | Namespaces | Functions | Variables
Color.h File Reference
#include <algorithm>
#include <cstdint>
#include <optional>
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

struct  graphics::Color
 Class for storing color in 32-bit format. More...
 

Namespaces

namespace  graphics
 
namespace  graphics::Colors
 

Functions

template<typename ScaleType >
constexpr Color graphics::lerp (Color lhs, Color rhs, ScaleType t)
 Performs linear interpolation between two colors. More...
 
GRAPHICS_API constexpr Color graphics::ColorFromRGA (uint32_t rgba) noexcept
 A helper function to create a color from a 32-bit RGBA integer. More...
 
GRAPHICS_API constexpr Color graphics::ColorFromABGR (uint32_t abgr) noexcept
 A helper function to create a color from a 32-bit ABGR integer. More...
 
GRAPHICS_API constexpr Color graphics::ColorFromRGB (uint32_t rgb) noexcept
 A helper function to create a color from a 32-bit RGB integer. Alpha is set to 255. More...
 
GRAPHICS_API constexpr Color graphics::ColorFromARGB (uint32_t argb) noexcept
 A helper function to create a color from a 32-bit ARGB integer. More...
 
GRAPHICS_API constexpr Color graphics::ColorFromFloatRGBA (float r, float g, float b, float a) noexcept
 A helper function to create a color from the floating point components. More...
 

Variables

constexpr Color graphics::Colors::White = ColorFromABGR(0xFFFFFFFF)
 Opaque white color constant. More...
 
constexpr Color graphics::Colors::Black = ColorFromABGR(0xFF000000)
 Opaque black color constant. More...
 
constexpr Color graphics::Colors::Transparent = ColorFromABGR(0x00000000)
 Transparent black color constant. More...
 
constexpr Color graphics::Colors::Red = ColorFromABGR(0xFF0000FF)
 Red color constant. More...
 
constexpr Color graphics::Colors::Green = ColorFromABGR(0xFF00FF00)
 Green color constant. More...
 
constexpr Color graphics::Colors::Blue = ColorFromABGR(0xFFFF0000)
 Blue color constant. More...