mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-15 15:23:41 +01:00
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;
|
||||
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));
|
||||
gradientColor1.mixWith(nc1, sin);
|
||||
gradientColor2.mixWith(nc2, sin);
|
||||
gradientColor1 = gradientColor1.mixWith(nc1, sin);
|
||||
gradientColor2 = gradientColor2.mixWith(nc2, sin);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -199,8 +199,13 @@ public class Color {
|
|||
}
|
||||
|
||||
public Color darker() {
|
||||
//todo
|
||||
return ensureMutable();
|
||||
int a = getAlpha();
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue