fix: brightness attribute now correctly controls the brightness, even with active effect.
This commit is contained in:
parent
e4bdcf71dc
commit
4962f344e3
2 changed files with 7 additions and 7 deletions
|
|
@ -167,7 +167,7 @@ protected:
|
|||
const int32_t dy = -abs(y2 - y1), sy = y1 < y2 ? 1 : -1;
|
||||
int32_t err = dx + dy;
|
||||
while (true) {
|
||||
effect_color = this->get_next_color(x1 + y1, Color(0));
|
||||
effect_color = this->get_next_color(x1 + y1, Color(0)) * this->brightness;
|
||||
if (to_effect) {
|
||||
color_to_draw = base_color.gradient(effect_color, transition_progress);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue