[FEATURE] allow starting/ending a gradient at a features centroid