supports verticalGredient and horizontalGredient.