flash mich nochmal
- fix ponder buttons not flashing correctly
This commit is contained in:
parent
370c813287
commit
cc575a70c8
2 changed files with 9 additions and 4 deletions
|
@ -83,8 +83,8 @@ public class PonderButton extends BoxWidget {
|
||||||
sin *= flashValue;
|
sin *= flashValue;
|
||||||
Color nc1 = new Color(255, 255, 255, MathHelper.clamp(gradientColor1.getAlpha() + 150, 0, 255));
|
Color nc1 = new Color(255, 255, 255, MathHelper.clamp(gradientColor1.getAlpha() + 150, 0, 255));
|
||||||
Color nc2 = new Color(155, 155, 155, MathHelper.clamp(gradientColor2.getAlpha() + 150, 0, 255));
|
Color nc2 = new Color(155, 155, 155, MathHelper.clamp(gradientColor2.getAlpha() + 150, 0, 255));
|
||||||
gradientColor1.mixWith(nc1, sin);
|
gradientColor1 = gradientColor1.mixWith(nc1, sin);
|
||||||
gradientColor2.mixWith(nc2, sin);
|
gradientColor2 = gradientColor2.mixWith(nc2, sin);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -199,8 +199,13 @@ public class Color {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Color darker() {
|
public Color darker() {
|
||||||
//todo
|
int a = getAlpha();
|
||||||
return ensureMutable();
|
return ensureMutable().mixWith(BLACK, .25f).setAlphaUnchecked(a);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Color brighter() {
|
||||||
|
int a = getAlpha();
|
||||||
|
return ensureMutable().mixWith(WHITE, .25f).setAlphaUnchecked(a);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Color setValue(int value) {
|
public Color setValue(int value) {
|
||||||
|
|
Loading…
Reference in a new issue