gradient#
- blueprints.gradient(*colors, n_steps)[source]#
This function creates a color gradient in form of a list of colors, which are interpolated between argument color.
>>> blue.gradient('red', 'yellow', n_steps=6) [Red[#FF0000], Red[#F52900], Orange[#EB5200], Orange[#E07A00], Yellow[#D6A300], Yellow[#CCCC00]]
- Parameters:
colors (
list) – A list of colors given in any of the formats specified byColor.n_steps (
int) – The number of steps taken from the first to the last color.
- Returns:
List of colors interpolated in n_steps along all given colors.
- Return type:
list