changed api to allow for different colors per vertex