|
77 | 77 | "FunctionOverride", |
78 | 78 | "PathFuncType", |
79 | 79 | "MappingFunction", |
80 | | - "Image", |
81 | | - "GrayscaleImage", |
82 | | - "RGBImage", |
83 | | - "RGBAImage", |
| 80 | + "PixelArray", |
| 81 | + "GrayscalePixelArray", |
| 82 | + "RGBPixelArray", |
| 83 | + "RGBAPixelArray", |
84 | 84 | "StrPath", |
85 | 85 | "StrOrBytesPath", |
86 | 86 | ] |
|
582 | 582 | Image types |
583 | 583 | """ |
584 | 584 |
|
585 | | -Image: TypeAlias = npt.NDArray[ManimInt] |
| 585 | +PixelArray: TypeAlias = npt.NDArray[ManimInt] |
586 | 586 | """``shape: (height, width) | (height, width, 3) | (height, width, 4)`` |
587 | 587 |
|
588 | 588 | A rasterized image with a height of ``height`` pixels and a width of |
|
595 | 595 | `RGBA_Array_Int`. |
596 | 596 | """ |
597 | 597 |
|
598 | | -GrayscaleImage: TypeAlias = Image |
| 598 | +GrayscalePixelArray: TypeAlias = PixelArray |
599 | 599 | """``shape: (height, width)`` |
600 | 600 |
|
601 | | -A 100% opaque grayscale `Image`, where every pixel value is a |
| 601 | +A 100% opaque grayscale `PixelArray`, where every pixel value is a |
602 | 602 | `ManimInt` indicating its lightness (black -> gray -> white). |
603 | 603 | """ |
604 | 604 |
|
605 | | -RGBImage: TypeAlias = Image |
| 605 | +RGBPixelArray: TypeAlias = PixelArray |
606 | 606 | """``shape: (height, width, 3)`` |
607 | 607 |
|
608 | | -A 100% opaque `Image` in color, where every pixel value is an |
| 608 | +A 100% opaque `PixelArray` in color, where every pixel value is an |
609 | 609 | `RGB_Array_Int` object. |
610 | 610 | """ |
611 | 611 |
|
612 | | -RGBAImage: TypeAlias = Image |
| 612 | +RGBAPixelArray: TypeAlias = PixelArray |
613 | 613 | """``shape: (height, width, 4)`` |
614 | 614 |
|
615 | | -An `Image` in color where pixels can be transparent. Every pixel |
| 615 | +A `PixelArray` in color where pixels can be transparent. Every pixel |
616 | 616 | value is an `RGBA_Array_Int` object. |
617 | 617 | """ |
618 | 618 |
|
|
0 commit comments