degrade() function allows to create a color degradation effect.
params of degrade()
x: x-coordinate of the starting point, int
y: y-coordinate of the starting point, int
width: width of the degradation area, int
height: height of the degradation area, int
color: initial color, tuple
target: target color, tuple
axis: degradation direction (0 for horizontal, 1 for vertical), bool
By Ilyas R.