Refactor matrix code

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Add dots color fade

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>