add internal color constructor and change color api to use int instead of unit