This commit is contained in:
parent
d47255953f
commit
97ec0d4ec6
|
|
@ -72,13 +72,6 @@ public class JPanelDraw extends JPanel {
|
|||
} else {
|
||||
g.setColor(Color.white);
|
||||
}
|
||||
if(cellContent == 2) {
|
||||
g.setColor(Color.yellow); //set collor with rgb value (255,255,0)
|
||||
//g.setColor(new Color(255,255,0));
|
||||
}
|
||||
if(cellContent == 3) {
|
||||
g.setColor(Color.red);
|
||||
}
|
||||
g.fillRect(
|
||||
(int) Math.round(x*cellWidth),
|
||||
(int) Math.round(y*cellHeight),
|
||||
|
|
@ -98,4 +91,4 @@ public class JPanelDraw extends JPanel {
|
|||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -411,4 +411,4 @@ public class MyInterface extends JFrame {
|
|||
speedSlider.setValue(3);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue