FastLED 3.10.6
Loading...
Searching...
No Matches
mood_palette.h File Reference
#include "FastLED.h"
#include "fl/stl/stdint.h"
#include "ring_canvas.h"
#include "room_sense.h"
+ Include dependency graph for mood_palette.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mood_ring::MoodPalette
 

Namespaces

namespace  mood_ring
 

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.
 

Class Documentation

◆ mood_ring::MoodPalette

struct mood_ring::MoodPalette
Class Members
u8 hueBase = 160 centre of the family
u8 hueSpread = 40 how far t=1 travels from t=0
u8 saturation = 200