FastLED 3.9.7
Loading...
Searching...
No Matches
framebuffer.h
1
2
3#ifndef FRAME_BUFFER_H_
4#define FRAME_BUFFER_H_
5
6struct Color3i;
7
9 public:
10 FrameBufferBase(Color3i* array, int n_pixels);
11 virtual ~FrameBufferBase();
12
13 void Set(int i, const Color3i& c);
14 void Set(int i, int length, const Color3i& color);
15 void FillColor(const Color3i& color);
16 void ApplyBlendSubtract(const Color3i& color);
17 void ApplyBlendAdd(const Color3i& color);
18 void ApplyBlendMultiply(const Color3i& color);
19 Color3i* GetIterator(int i);
20
21 // Length in pixels.
22 int length() const;
23
24 protected:
25 Color3i* color_array_;
26 int n_color_array_;
27};
28
30 public:
31 FrameBuffer(int n_pixels);
32 virtual ~FrameBuffer();
33};
34
35#endif // FRAME_BUFFER_H_
Definition color.h:8