This commit is contained in:
Balthazar SQUINABOL 2024-05-29 14:30:21 +02:00 committed by guillaume.bonabau
parent d47255953f
commit 97ec0d4ec6
2 changed files with 2 additions and 9 deletions

View File

@ -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 {
}
}
}

View File

@ -411,4 +411,4 @@ public class MyInterface extends JFrame {
speedSlider.setValue(3);
}
}
}