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

Detailed Description

Defines utility functions for the red, green, and blue (RGB) pixel struct.

Definition in file crgb.hpp.

#include "fl/stl/stdint.h"
#include "chsv.h"
#include "crgb.h"
#include "lib8tion.h"
#include "fl/stl/compiler_control.h"
#include "fl/math/scale8.h"
+ Include dependency graph for crgb.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fl
 Base definition for an LED controller.
 

Macros

#define FUNCTION_SCALE8(a, b)
 

Functions

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, 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.