73 return HsbColor(T_NEOHUEBLEND::HueBlend(left.
H, right.
H, progress),
74 left.
S + ((right.
S - left.
S) * progress),
75 left.
B + ((right.
B - left.
B) * progress));
94 float v00 = (1.0f - x) * (1.0f - y);
95 float v10 = x * (1.0f - y);
96 float v01 = (1.0f - x) * y;
100 T_NEOHUEBLEND::HueBlend(
101 T_NEOHUEBLEND::HueBlend(c00.
H, c10.
H, x),
102 T_NEOHUEBLEND::HueBlend(c01.
H, c11.
H, x),
104 c00.
S * v00 + c10.
S * v10 + c01.
S * v01 + c11.
S * v11,
105 c00.
B * v00 + c10.
B * v10 + c01.
B * v01 + c11.
B * v11);
117 static void _RgbToHsb(
float r,
float g,
float b,
HsbColor* color);
Definition: HsbColor.h:35
static HsbColor LinearBlend(const HsbColor &left, const HsbColor &right, float progress)
Definition: HsbColor.h:69
HsbColor()
Definition: HsbColor.h:58
float H
Definition: HsbColor.h:106
float B
Definition: HsbColor.h:114
HsbColor(float h, float s, float b)
Definition: HsbColor.h:39
float S
Definition: HsbColor.h:113
static HsbColor BilinearBlend(const HsbColor &c00, const HsbColor &c01, const HsbColor &c10, const HsbColor &c11, float x, float y)
Definition: HsbColor.h:87
Definition: Rgb48Color.h:36
Definition: RgbColor.h:36