The making of a gradient sky