“cmd.gradient” creates a gradient object from a map object.
def gradient(name, map, minimum=1.0, maximum=-1.0, selection='', buffer=0.0, state=0, carve=None, source_state=0, quiet=1):
gradient | api