1. use positive index to indicate color fill and negative index to
indicate pixmap fill
