@GarrettL, thanks for showing the coded... because you inserted lines, it got a bit mangled because the line numbers changed... The reason that you do not see effects is that both 3rd changes ended up outside the loop and before the color is set instead of replacing your fillRect() in the loop after the color is set. Furthermore, because your code comes after the changes, it just overwrites what was before... and in the second example you commented oh¥-so-required the loop that's why you get just a white dot in the top left corner... ;-)
Return to your code in post #25, and apply literally proposed changes.... and you will see it work. There is nothing wrong with your code in post #25, because it produced a big tall, fat horizontal bar from top to bottom - 240 pixels - consisting of 50 slim vertical bars - 3 pixels wide - for each LED. The proposed changes will just double that...
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@GarrettL, thanks for showing the coded... because you inserted lines, it got a bit mangled because the line numbers changed... The reason that you do not see effects is that both 3rd changes ended up outside the loop and before the color is set instead of replacing your fillRect() in the loop after the color is set. Furthermore, because your code comes after the changes, it just overwrites what was before... and in the second example you commented oh¥-so-required the loop that's why you get just a white dot in the top left corner... ;-)
Return to your code in post #25, and apply literally proposed changes.... and you will see it work. There is nothing wrong with your code in post #25, because it produced a big tall, fat horizontal bar from top to bottom - 240 pixels - consisting of 50 slim vertical bars - 3 pixels wide - for each LED. The proposed changes will just double that...