Reference ‐ RTCamera - 62firelight/manimRT-490 GitHub Wiki
A virtual camera that represents the observer of a scene.
Args:
-
projection_point_coords
: The 3D coordinates of the projection point. -
image_width
: The grid width of the camera's 2D image plane. -
image_height
: The grid height of the camera's 2D image plane. -
total_width
: The width of the camera's 2D image plane. -
total_height
: The height of the camera's 2D image plane. -
focal_length
: The distance from the projection point to the image plane.
__init__(
projection_point_coords: list = array([0., 0., 0.]),
image_width: int = 16,
image_height: int = 9,
total_width: int = 1,
total_height: int = 1,
focal_length: int = 1,
**kwargs: dict[str, Any]
)
colour_pixel(
x: float,
y: float,
color: Union[ManimColor, int, str, Tuple[int, int, int], Tuple[float, float, float], Tuple[int, int, int, int], Tuple[float, float, float, float], ndarray[Any, dtype[int64]], ndarray[Any, dtype[float64]]] = ManimColor('#58C4DD')
)
Creates a colored Square Mobject at the pixel specified by (x, y).
Args:
-
x
: The x coordinate of the pixel. -
y
: The y coordinate of the pixel. -
color
: The color of the Square Mobject at the specified pixel.
Returns: A Square Mobject at the pixel specified by (x, y).
draw_ray(
x: float,
y: float,
length: float = 1,
thickness: float = 0.02,
color: Union[ManimColor, int, str, Tuple[int, int, int], Tuple[float, float, float], Tuple[int, int, int, int], Tuple[float, float, float, float], ndarray[Any, dtype[int64]], ndarray[Any, dtype[float64]]] = ManimColor('#58C4DD')
)
Creates a ray that goes through the centre of the pixel specified by (x, y).
Args:
-
x
: The x coordinate of the pixel that the ray goes through. -
y
: The y coordinate of the pixel that the ray goes through. -
length
: The length of the ray. -
thickness
: The thickness of the ray. -
color
: The color of the ray.
Returns: A Ray3D Mobject that goes through the centre of the pixel specified by (x, y).
This file was automatically generated via lazydocs.