added ability to set gradient with list.