FastLED 3.10.6
Loading...
Searching...
No Matches
crgb_json.h
Go to the documentation of this file.
1#pragma once
2
14
15#include "fl/gfx/crgb.h"
16#include "fl/stl/json.h"
17#include "fl/stl/optional.h"
18#include "fl/stl/span.h"
19
20namespace fl {
21
28
39bool crgbFromJson(const json& document, span<CRGB> pixels) FL_NO_EXCEPT;
40
41} // namespace fl
Defines the 8-bit red, green, and blue (RGB) pixel type in the fl namespace.
FastLED's Elegant JSON Library: fl::json
optional< json > crgbToJson(span< const CRGB > pixels) FL_NO_EXCEPT
Encode a CRGB pixel buffer as a versioned JSON object.
Optional< T > optional
Definition optional.h:16
InputGamut g FL_NO_EXCEPT
Definition rgbw.h:121
bool crgbFromJson(const json &document, span< CRGB > pixels) FL_NO_EXCEPT
Decode a versioned JSON object into an existing CRGB pixel buffer.
Base definition for an LED controller.
Definition crgb.hpp:179