Skip to content

Commit

Permalink
Raise ValueError if 'shape' is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Jan 19, 2021
1 parent c841a87 commit bc88b04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions moviepy/video/tools/drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ 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'"
)


def color_split(
Expand Down

0 comments on commit bc88b04

Please sign in to comment.