turn off transparency

master
ThirstyShark 5 years ago
parent a119be9655
commit a98e4d4cf1

@ -1,4 +1,4 @@
#Thu, 31 Jan 2019 16:42:40 -0600
#Thu, 31 Jan 2019 16:46:59 -0600
C\:\\Users\\cd109\\Desktop\\CancerGrowth=

Binary file not shown.

@ -75,7 +75,7 @@ public class Cell extends Object
int height = (int) (-50 + Math.random()*101);
while (width < 20 && width > -20) width = (int) (-50 + Math.random()*101);
while (height < 20 && height > -20) height = (int) (-50 + Math.random()*101);
newcell = new Cell(xval + width, yval + height, new Color(255, 0, 0, 100));
newcell = new Cell(xval + width, yval + height, new Color(255, 0, 0));
//stages = new ArrayList<Integer>();
//stages.add(10 + (int) Math.random() * 3 - 1);
//stages.add(7 + (int) Math.random() * 3 - 1);
@ -86,14 +86,14 @@ public class Cell extends Object
yval -= height;
currentStage = 0;
currentTime = 1;
myColor = new Color(255, 0, 0, 100);
myColor = new Color(255, 0, 0);
}
else {
this.currentStage ++;
this.currentTime = 0;
if(currentStage == 1) myColor = new Color(255, 255, 0, 100);
if(currentStage == 2) myColor = new Color(0, 255, 0, 100);
if(currentStage == 3) myColor = new Color(0, 0, 255, 100);
if(currentStage == 1) myColor = new Color(255, 255, 0);
if(currentStage == 2) myColor = new Color(0, 255, 0);
if(currentStage == 3) myColor = new Color(0, 0, 255);
}
}
return newcell;

@ -40,7 +40,7 @@ public class CellPanel extends javax.swing.JPanel implements ActionListener, Cha
//Cell t1 = new Cell(300, 100, Color.RED);
//choice1.addItem(t1);
//cells.add(t1);
Cell t2 = new Cell(475, 475, new Color(255, 0, 0, 100));
Cell t2 = new Cell(475, 475, new Color(255, 0, 0));
//choice1.addItem(t2);
cells.add(t2);
//choice2.addItem(t2);

Loading…
Cancel
Save