def dark_palette(color, n_colors=6, reverse=False, as_cmap=False):
 gray = '#222222'
 colors = ([color, gray] if reverse else [gray, color])
 return blend_palette(colors, n_colors, as_cmap)

def dark_palette ( color , n_colors = 6 , reverse = False , as_cmap = False ) : gray = '#222222' colors = ( [ color , gray ] if reverse else [ gray , color ] ) return blend_palette ( colors , n_colors , as_cmap )
make a sequential palette that blends from dark to color .