FastLED 3.9.15
Loading...
Searching...
No Matches
rgbw.h
Go to the documentation of this file.
1
3
4#pragma once
5
6#include "fl/gfx/rgbw.h"
7
8// Since FastLED 3.10.3 the RGBW functions are in the fl namespace.
9// This file is a compatibility layer to allow the old functions to be used.
10// It is not necessary to include this file if you are using FastLED 3.10.3 or later.
11
12using fl::Rgbw;
13using fl::RgbwInvalid;
14using fl::RgbwDefault;
16using fl::RGBW_MODE;
18// Backward-compat constexpr aliases for enum class values
19constexpr RGBW_MODE kRGBWInvalid = RGBW_MODE::kRGBWInvalid;
20constexpr RGBW_MODE kRGBWNullWhitePixel = RGBW_MODE::kRGBWNullWhitePixel;
21constexpr RGBW_MODE kRGBWExactColors = RGBW_MODE::kRGBWExactColors;
22constexpr RGBW_MODE kRGBWBoostedWhite = RGBW_MODE::kRGBWBoostedWhite;
23constexpr RGBW_MODE kRGBWMaxBrightness = RGBW_MODE::kRGBWMaxBrightness;
24constexpr RGBW_MODE kRGBWColorimetric = RGBW_MODE::kRGBWColorimetric;
25constexpr RGBW_MODE kRGBWColorimetricBoosted = RGBW_MODE::kRGBWColorimetricBoosted;
26// kRGBWUserFunction MUST stay last — see comment on the enum in fl/gfx/rgbw.h.
27constexpr RGBW_MODE kRGBWUserFunction = RGBW_MODE::kRGBWUserFunction;
Functions for red, green, blue, white (RGBW) output.
@ kRGBWDefaultColorTemp
Definition rgbw.h:170
RGBW_MODE
Definition rgbw.h:14
constexpr RGBW_MODE kRGBWUserFunction
Definition rgbw.h:27
constexpr RGBW_MODE kRGBWMaxBrightness
Definition rgbw.h:23
constexpr RGBW_MODE kRGBWExactColors
Definition rgbw.h:21
constexpr RGBW_MODE kRGBWBoostedWhite
Definition rgbw.h:22
constexpr RGBW_MODE kRGBWNullWhitePixel
Definition rgbw.h:20
constexpr RGBW_MODE kRGBWColorimetricBoosted
Definition rgbw.h:25
constexpr RGBW_MODE kRGBWColorimetric
Definition rgbw.h:24
constexpr RGBW_MODE kRGBWInvalid
Definition rgbw.h:19