FastLED 3.10.6
Loading...
Searching...
No Matches
mood_palette.cpp File Reference
#include "mood_palette.h"
#include "ring_canvas.h"
+ Include dependency graph for mood_palette.cpp:

Go to the source code of this file.

Namespaces

namespace  mood_ring
 
namespace  mood_ring::anonymous_namespace{mood_palette.cpp}
 

Functions

RGBf mood_ring::paletteColor (const MoodPalette &p, float t)
 Colour at position t in [0, 1] along the family, at value v.
 
MoodPalette mood_ring::paletteFor (const RoomSense &s, float hueDrift)
 Derive the family for this frame. Cheap; call every frame.
 

Variables

constexpr float mood_ring::anonymous_namespace{mood_palette.cpp}::kCoolHue = 150.0f
 
constexpr float mood_ring::anonymous_namespace{mood_palette.cpp}::kMaxSat = 255.0f
 
constexpr float mood_ring::anonymous_namespace{mood_palette.cpp}::kMaxSpread = 96.0f
 
constexpr float mood_ring::anonymous_namespace{mood_palette.cpp}::kMinSat = 150.0f
 
constexpr float mood_ring::anonymous_namespace{mood_palette.cpp}::kMinSpread = 24.0f
 
constexpr float mood_ring::anonymous_namespace{mood_palette.cpp}::kWarmHue = 20.0f