refactor and hardware accel setup

refactor to use constants for color. added a funcion that can be dropped
in place of current rectangle drawing algorithm to use hardware
acceleration once it is in the qsys