Moved color update ahead of first write. Fixes off color pixels.
Reversed loop to make colors cycle from top to bottom.