ColorMap.from_two_colors
- classmethod ColorMap.from_two_colors(c1, c2, diverging=False)[source]
Create a color map from two colors.
- Parameters:
- c1
compas.colors.Color
The first color.
- c2
compas.colors.Color
The second color.
- divergingbool, optional
If True, use white as transition color in the middle.
- c1
- Returns:
compas.colors.ColorMap
A color map with 256 colors.