setColor and setGradient functions
formating