mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 14:03:59 +08:00
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:
@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user