1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-30 17:27:57 +00:00

XGD: filled circles and start with clearscreen

This commit is contained in:
Zeno Rogue
2021-06-01 10:08:16 +02:00
parent 214e314803
commit 63570af240
4 changed files with 28 additions and 4 deletions

View File

@@ -150,14 +150,26 @@ public class HyperView extends View {
break;
}
case 5: {
int col = gdpop();
col = realpha(col);
col |= 0xFF000000;
dc.drawColor(col);
break;
}
case 4: {
int col = gdpop();
int col = gdpop();
int fil = gdpop();
int x = gdpop();
int y = gdpop();
int rad = gdpop();
col += 0xFF000000;
pon.setColor(col);
pon.setColor(realpha(fil));
pon.setStyle(Paint.Style.FILL);
dc.drawCircle(x, y, rad, pon);
pon.setColor(realpha(col));
pon.setStyle(Paint.Style.STROKE);
dc.drawCircle(x, y, rad, pon);