Revert "Merge branch 'master' of github.com:3b1b/manim into alt-calc"

This reverts commit 17a1ea6db500eddfdec75cc727b70737d892e961, reversing
changes made to c8c6e6d9ba77d42c8d50d8187ca2b0427da0079c.
This commit is contained in:
Grant Sanderson
2018-05-21 12:11:46 -07:00
parent 0f3b54694d
commit 13d7228918
22 changed files with 468 additions and 328 deletions

View File

@ -39,7 +39,8 @@ def color_to_int_rgb(color):
return (255 * color_to_rgb(color)).astype('uint8')
def color_to_int_rgba(color, alpha=255):
def color_to_int_rgba(color, opacity=1.0):
alpha = int(255 * opacity)
return np.append(color_to_int_rgb(color), alpha)