small modification for performance improvement

- using ivar to store maincolor instead re-create at every draw cycle.
- renamed color variables.