mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Remove unused drag_pixels
This commit is contained in:
parent
f6ff226cd4
commit
c96a698713
1 changed files with 1 additions and 10 deletions
|
@ -29,16 +29,7 @@ def get_full_vector_image_path(image_file_name: str) -> str:
|
|||
)
|
||||
|
||||
|
||||
def drag_pixels(frames: Iterable) -> list:
|
||||
curr = frames[0]
|
||||
new_frames = []
|
||||
for frame in frames:
|
||||
curr += (curr == 0) * np.array(frame)
|
||||
new_frames.append(np.array(curr))
|
||||
return new_frames
|
||||
|
||||
|
||||
def invert_image(image: Iterable) -> Image:
|
||||
def invert_image(image: Iterable) -> Image.Image:
|
||||
arr = np.array(image)
|
||||
arr = (255 * np.ones(arr.shape)).astype(arr.dtype) - arr
|
||||
return Image.fromarray(arr)
|
||||
|
|
Loading…
Add table
Reference in a new issue