"""Storm CMAP."""

from matplotlib.colors import LinearSegmentedColormap


_colors = [
    [0.2, 0.2, 0.7],
    [0.4, 0.3, 0.9],
    [0.5, 0.5, 1.0],
    [0.7, 0.6, 1.0],
    [0.8, 0.8, 1.0],
    [1.0, 0.9, 0.9],
    [1.0, 0.6, 0.6],
    [0.9, 0.4, 0.4],
    [0.8, 0.2, 0.2],
    [0.6, 0.0, 0.0],
    [0.9, 0.1, 0.0],
    [1.0, 0.2, 0.0],
    [1.0, 0.4, 0.0],
    [1.0, 0.6, 0.0],
    [1.0, 0.8, 0.2],
    [1.0, 0.9, 0.5],
    [1.0, 1.0, 0.7],
    [0.9, 1.0, 1.0],
    [0.6, 0.8, 1.0],
    [0.3, 0.6, 1.0],
    [0.2, 0.5, 0.9],
    [0.1, 0.4, 0.8],
    [0.0, 0.3, 0.7],
    [0.0, 0.5, 0.0],
    [0.1, 0.7, 0.1],
    [0.3, 0.9, 0.3],
    [0.6, 1.0, 0.5],
    [0.8, 1.0, 0.7],
    [0.4, 0.4, 0.4],
    [0.6, 0.6, 0.6],
    [0.7, 0.7, 0.7],
    [0.9, 0.9, 0.9],
]

cmap = LinearSegmentedColormap.from_list("storm", _colors)
cmap_r = LinearSegmentedColormap.from_list("storm", _colors[::-1])
