forked from Makuna/NeoPixelBus
Topology, Curves, Gamma, and Samples
Topology, Tiles, and Mosaic layout Animation Curves Color Gamma correct change timescale dynamically on NeoPixelAnimator bilinear color blend methods new samples to support new features
This commit is contained in:
@@ -62,7 +62,25 @@ struct HtmlColor
|
||||
{
|
||||
};
|
||||
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// BilinearBlend between four colors by the amount defined by 2d variable
|
||||
// c00 - upper left quadrant color
|
||||
// c01 - upper right quadrant color
|
||||
// c10 - lower left quadrant color
|
||||
// c11 - lower right quadrant color
|
||||
// x - unit value (0.0 - 1.0) that defines the blend progress in horizontal space
|
||||
// y - unit value (0.0 - 1.0) that defines the blend progress in vertical space
|
||||
// ------------------------------------------------------------------------
|
||||
static HtmlColor BilinearBlend(const HtmlColor& c00,
|
||||
const HtmlColor& c01,
|
||||
const HtmlColor& c10,
|
||||
const HtmlColor& c11,
|
||||
float x,
|
||||
float y)
|
||||
{
|
||||
return RgbColor::BilinearBlend(c00, c01, c10, c11, x, y);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Color member (0-0xffffff) where
|
||||
// 0xff0000 is red
|
||||
|
||||
Reference in New Issue
Block a user