comit for merge

This commit is contained in:
lemon-cat committed 2026-05-15 14:18:37 +03:00
1 parent 9c61078414
commit 66c0bb839e
2 files changed
+32 -2

No files matched your search

+2 -2
View File
@@ -78,13 +78,13 @@ impl Render {
ResetColor
);
}
pub fn frame(&mut self, grid: &TorusGrid<i32>) {
pub fn frame(&mut self, grid: &TorusGrid<bool>) {
let mut out = self.out.lock();
_ = queue!(out, MoveTo(0, 0));
for i in 0..self.rez.0 {
for j in 0..self.rez.1 {
let a = grid.get_wrap((i as i32 + self.pos.0, j as i32 + self.pos.1));
let b = *a as u8;
let b = *a as u8 * 200;
_ = queue!(
out,
SetBackgroundColor(Color::Rgb { r: b, g: b, b: b }),