Support left-right and top-bottom gradient