Skip to content

Commit

Permalink
Merge pull request #47 from mahomaps/splash-grad
Browse files Browse the repository at this point in the history
Splash gradient changes
  • Loading branch information
Feodor0090 authored May 27, 2023
2 parents 00374d1 + 96a480c commit 8f2fb11
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/mahomaps/screens/Splash.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,14 @@ protected void paint(Graphics g) {
final int c1 = 0xa74134;
final int c2 = 0xf8503c;

int gy = 0;
for (int i = 1; i < h; i++) {
gy++;
for (int i = 0; i < h; i++) {
g.setColor(ColorUtils.blend(c1, c2, i * 255 / h));
g.drawLine(0, gy, w, gy);
g.drawLine(0, i, w, i);
}


if (this.image == null) {
g.setColor(0xff0000);
g.setColor(-1);
g.setFont(Font.getFont(0, Font.STYLE_BOLD, Font.SIZE_LARGE));
int x = w >> 1;
int y = h >> 1;
Expand Down

0 comments on commit 8f2fb11

Please sign in to comment.