Light up right side only in test

This commit is contained in:
Luke
2020-06-03 20:37:42 +12:00
parent fe0f8568bc
commit 0530786ee5
2 changed files with 4 additions and 12 deletions

View File

@@ -20,17 +20,9 @@ fn main() {
// Try an outline, top and right
let mut matrix = AniMeMatrix::new();
{
let mut tmp = matrix.get_mut();
let mut first_row_done = false;
let tmp = matrix.get_mut();
for row in tmp.iter_mut() {
if !first_row_done {
for c in row.iter_mut() {
*c = 0xff;
}
first_row_done = true;
} else {
row[row.len() - 1] = 0xff;
}
row[row.len() - 1] = 0xff;
}
}