mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 21:44:19 +08:00
record shape in place of height and width separately
This commit is contained in:
@ -12,6 +12,9 @@ import re
|
||||
from constants import *
|
||||
|
||||
|
||||
def color_to_int_rgb(color):
|
||||
return (255*np.array(Color(color).get_rgb())).astype('uint8')
|
||||
|
||||
def compass_directions(n = 4, start_vect = UP):
|
||||
angle = 2*np.pi/n
|
||||
return [
|
||||
|
Reference in New Issue
Block a user