Skip to content

Commit

Permalink
Raise 'ValueError' with inconsistent p2/vector in 'bilinear' shape
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Jan 19, 2021
1 parent 9f16fa1 commit 00884e3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions moviepy/video/tools/drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ def color_gradient(
if color_1.size > 1:
arr = np.dstack(3 * [arr])
return (1 - arr) * color_1 + arr * color_2
raise ValueError(
"Invalid shape, should be either 'radial', 'linear' or 'bilinear'"
)
raise ValueError("Invalid shape, should be either 'radial', 'linear' or 'bilinear'")


def color_split(
Expand Down

0 comments on commit 00884e3

Please sign in to comment.