FastLED 3.9.15
Loading...
Searching...
No Matches
crgb.h File Reference

Detailed Description

Defines the 8-bit red, green, and blue (RGB) pixel type in the fl namespace.

Definition in file crgb.h.

#include "fl/stl/int.h"
#include "fl/stl/compiler_control.h"
#include "fl/math/ease.h"
#include "color.h"
#include "fl/stl/noexcept.h"
+ Include dependency graph for crgb.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fl::CRGB
 Representation of an 8-bit RGB pixel (Red, Green, Blue) More...
 
union  fl::CRGB.__unnamed0__
 
struct  fl::CRGB.__unnamed0__.__unnamed0__
 
union  fl::CRGB.__unnamed0__.__unnamed0__.__unnamed0__
 
union  fl::CRGB.__unnamed0__.__unnamed0__.__unnamed1__
 
union  fl::CRGB.__unnamed0__.__unnamed0__.__unnamed2__
 

Namespaces

namespace  fl
 Base definition for an LED controller.
 

Functions

FASTLED_FORCE_INLINE bool fl::operator!= (const CRGB &lhs, const CRGB &rhs) FL_NOEXCEPT
 Check if two CRGB objects do not have the same color data.
 
FASTLED_FORCE_INLINE CRGB fl::operator% (const CRGB &p1, u8 d) FL_NOEXCEPT
 Scale using CRGB::nscale8_video()
 
FASTLED_FORCE_INLINE CRGB fl::operator& (const CRGB &p1, const CRGB &p2) FL_NOEXCEPT
 Combine two CRGB objects, taking the smallest value of each channel.
 
FASTLED_FORCE_INLINE CRGB fl::operator* (const CRGB &p1, u8 d) FL_NOEXCEPT
 Multiply each of the channels by a constant, saturating each channel at 0xFF.
 
FASTLED_FORCE_INLINE CRGB fl::operator+ (const CRGB &p1, const CRGB &p2) FL_NOEXCEPT
 Add one CRGB to another, saturating at 0xFF for each channel.
 
FASTLED_FORCE_INLINE CRGB fl::operator- (const CRGB &p1, const CRGB &p2) FL_NOEXCEPT
 Subtract one CRGB from another, saturating at 0x00 for each channel.
 
FASTLED_FORCE_INLINE CRGB fl::operator/ (const CRGB &p1, u8 d) FL_NOEXCEPT
 Divide each of the channels by a constant.
 
FASTLED_FORCE_INLINE bool fl::operator< (const CRGB &lhs, const CRGB &rhs) FL_NOEXCEPT
 Check if the sum of the color channels in one CRGB object is less than another.
 
FASTLED_FORCE_INLINE bool fl::operator<= (const CRGB &lhs, const CRGB &rhs) FL_NOEXCEPT
 Check if the sum of the color channels in one CRGB object is less than or equal to another.
 
FASTLED_FORCE_INLINE bool fl::operator== (const CRGB &lhs, const CRGB &rhs) FL_NOEXCEPT
 Check if two CRGB objects have the same color data.
 
FASTLED_FORCE_INLINE bool fl::operator> (const CRGB &lhs, const CRGB &rhs) FL_NOEXCEPT
 Check if the sum of the color channels in one CRGB object is greater than another.
 
FASTLED_FORCE_INLINE bool fl::operator>= (const CRGB &lhs, const CRGB &rhs) FL_NOEXCEPT
 Check if the sum of the color channels in one CRGB object is greater than or equal to another.
 
FASTLED_FORCE_INLINE CRGB fl::operator| (const CRGB &p1, const CRGB &p2) FL_NOEXCEPT
 Combine two CRGB objects, taking the largest value of each channel.
 

Class Documentation

◆ fl::CRGB.__unnamed0__

union fl::CRGB.__unnamed0__
Class Members
struct CRGB.__unnamed0__.__unnamed0__ __unnamed__
u8 raw[3] Access the red, green, and blue data as an array.

Where:

  • raw[0] is the red value
  • raw[1] is the green value
  • raw[2] is the blue value

◆ fl::CRGB.__unnamed0__.__unnamed0__

struct fl::CRGB.__unnamed0__.__unnamed0__

◆ fl::CRGB.__unnamed0__.__unnamed0__.__unnamed0__

union fl::CRGB.__unnamed0__.__unnamed0__.__unnamed0__
Class Members
u8 r Red channel value.
u8 red

◆ fl::CRGB.__unnamed0__.__unnamed0__.__unnamed1__

union fl::CRGB.__unnamed0__.__unnamed0__.__unnamed1__
Class Members
u8 g Green channel value.
u8 green

◆ fl::CRGB.__unnamed0__.__unnamed0__.__unnamed2__

union fl::CRGB.__unnamed0__.__unnamed0__.__unnamed2__
Class Members
u8 b Blue channel value.
u8 blue