I want to be able to iterate over all the Pixel
s in my matrix, modifying them slightly as I go but I can't! Instead I have to keep a separate copy of the exact same data that will exist inside the SmartLedMatrix
and manipulate that first then re-write it to the matrix. This seems inefficient but... Maybe this is intentional?
If it is intentional then carry on but it sure would be nice if I could do something like for pixel in matrix.iter_mut() { /* Manipulate the pixel */ }
π