roo_blink
API Documentation for roo_blink
Loading...
Searching...
No Matches
roo_blink::Color Class Reference

Simple 24-bit RGB color value. More...

#include <color.h>

Public Member Functions

constexpr Color ()
 Creates black (0,0,0).
 
constexpr Color (uint8_t r, uint8_t g, uint8_t b)
 Creates a color from 8-bit RGB components.
 
uint8_t r () const
 Returns the red component.
 
uint8_t g () const
 Returns the green component.
 
uint8_t b () const
 Returns the blue component.
 

Detailed Description

Simple 24-bit RGB color value.

Definition at line 8 of file color.h.

Constructor & Destructor Documentation

◆ Color() [1/2]

constexpr roo_blink::Color::Color ( )
inlineconstexpr

Creates black (0,0,0).

Definition at line 11 of file color.h.

◆ Color() [2/2]

constexpr roo_blink::Color::Color ( uint8_t  r,
uint8_t  g,
uint8_t  b 
)
inlineconstexpr

Creates a color from 8-bit RGB components.

Definition at line 14 of file color.h.

Member Function Documentation

◆ b()

uint8_t roo_blink::Color::b ( ) const
inline

Returns the blue component.

Definition at line 22 of file color.h.

Referenced by roo_blink::NeoPixelLed::setColor().

◆ g()

uint8_t roo_blink::Color::g ( ) const
inline

Returns the green component.

Definition at line 20 of file color.h.

Referenced by roo_blink::NeoPixelLed::setColor().

◆ r()

uint8_t roo_blink::Color::r ( ) const
inline

Returns the red component.

Definition at line 18 of file color.h.

Referenced by roo_blink::NeoPixelLed::setColor().


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