Rerun C++ SDK
Loading...
Searching...
No Matches
rerun::components::Color Struct Reference

Component: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha. More...

#include <rerun/components/color.hpp>

Public Member Functions

 Color (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)
 Construct Color from unmultiplied RGBA values.
 
uint8_t r () const
 
uint8_t g () const
 
uint8_t b () const
 
uint8_t a () const
 
 Color (rerun::datatypes::Rgba32 rgba_)
 
Coloroperator= (rerun::datatypes::Rgba32 rgba_)
 
 Color (uint32_t rgba_)
 
Coloroperator= (uint32_t rgba_)
 
 operator rerun::datatypes::Rgba32 () const
 Cast to the underlying Rgba32 datatype.
 

Public Attributes

rerun::datatypes::Rgba32 rgba
 

Detailed Description

Component: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha.

The color is stored as a 32-bit integer, where the most significant byte is R and the least significant byte is A.


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