diff options
| author | LLLL Colonq <llll@colonq> | 2025-10-23 18:22:44 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-10-23 18:22:44 -0400 |
| commit | 99a9b8c0bcc345f7044ab18840e78ee9263cae9b (patch) | |
| tree | 5177a48645a405b70ec39a34dc16a7fdb044ec63 /crates/renderer/src/overlay/automata.rs | |
| parent | 4ae21efc81f39ca805cefe5c1af722857f22f255 (diff) | |
Add audio loopback overlay
Diffstat (limited to 'crates/renderer/src/overlay/automata.rs')
| -rw-r--r-- | crates/renderer/src/overlay/automata.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/renderer/src/overlay/automata.rs b/crates/renderer/src/overlay/automata.rs index 22f7884..fbbc138 100644 --- a/crates/renderer/src/overlay/automata.rs +++ b/crates/renderer/src/overlay/automata.rs @@ -115,6 +115,7 @@ impl CellBuffer { pub fn get(&self, x: i32, y: i32) -> Cell { self.buf[Self::idx(x, y)] } + pub fn neighbors(&self, x: i32, y: i32) -> [Cell; 8] { [ self.get(x-1, y-1), self.get(x, y-1), |
