public interface CasseroleLEDInterface
Modifier and Type | Field and Description |
---|---|
static double |
m_update_period_ms |
Modifier and Type | Method and Description |
---|---|
default void |
clearColorBuffer() |
static java.awt.Color |
getIntermedeateColor(double ratio,
java.awt.Color c0,
java.awt.Color c1)
Get an intermediate color between two colors
Super simple cross-fade in RGB space with no regard for
HSV or any actual science on how colors work.
|
static double |
hueToRgb(double p,
double q,
double t)
Helper method that converts hue to rgb
|
default void |
setLEDColor(int index,
java.awt.Color c) |
default void |
setLEDColor(int index,
double r,
double g,
double b) |
default void |
setLEDColorHSL(int idx,
double h,
double s,
double l) |
static final double m_update_period_ms
default void clearColorBuffer()
default void setLEDColor(int index, double r, double g, double b)
default void setLEDColor(int index, java.awt.Color c)
default void setLEDColorHSL(int idx, double h, double s, double l)
static double hueToRgb(double p, double q, double t)
static java.awt.Color getIntermedeateColor(double ratio, java.awt.Color c0, java.awt.Color c1)
ratio
- 0 is full c0, 1 is full c1c0
- one colorc1
- the other color