mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 06:22:54 +08:00
Up to spring solution in Brachistachrone
This commit is contained in:
@ -157,7 +157,10 @@ class Camera(object):
|
||||
|
||||
def get_thickening_nudges(self, thickness):
|
||||
_range = range(-thickness/2+1, thickness/2+1)
|
||||
return np.array(list(it.product(*[_range]*2)))
|
||||
return np.array(
|
||||
list(it.product([0], _range))+
|
||||
list(it.product(_range, [0]))
|
||||
)
|
||||
|
||||
def thickened_coordinates(self, pixel_coords, thickness):
|
||||
nudges = self.get_thickening_nudges(thickness)
|
||||
|
Reference in New Issue
Block a user