Test two(now unfortietly with shortend id)
This commit is contained in:
@@ -80,8 +80,9 @@ public class Main extends JPanel {
|
||||
int endY = y + size * constellation.getJSONObject("end").getInt("y");
|
||||
g2d.fillOval(endX-starOffset, endY-starOffset,starSize,starSize);
|
||||
g2d.setColor(new Color(0,0,0));
|
||||
x = (((int)(Math.random()*100)%2==0)?endX:startX);
|
||||
y = (((int)(Math.random()*100)%2==0)?endY:startY);
|
||||
boolean b = (int) (Math.random() * 100) % 2 == 0;
|
||||
x = (b ?endX:startX);
|
||||
y = (b ?endY:startY);
|
||||
}
|
||||
|
||||
endX = x;
|
||||
@@ -125,8 +126,9 @@ public class Main extends JPanel {
|
||||
int endY = y + size * constellation.getJSONObject("end").getInt("y");
|
||||
g2d.fillOval(endX-starOffset, endY-starOffset,starSize,starSize);
|
||||
g2d.setColor(new Color(0,0,0));
|
||||
x = (((int)(Math.random()*0)%2==0)?endX:startX);
|
||||
y = (((int)(Math.random()*0)%2==0)?endY:startY);
|
||||
boolean b = (int) (Math.random() * 0) % 2 == 0;
|
||||
x = (b ?endX:startX);
|
||||
y = (b ?endY:startY);
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user