other_objects¶
- class Photo[source]¶
Represent and decorate a photograph with optional polaroid or frame styling.
- Parameters:
photo (str) – Path to the image file.
decorator_style (str, optional) –
- Style of decoration. Options:
"polaroid": Photo with a pin and caption."techno": Photo with a simple colored frame.
caption (str, optional) – Text caption under the polaroid photo (only for
polaroidstyle).text_size (float) – Font size for caption text. Default is
35.text_color (ParsableManimColor) – Color of caption text. Default is
WHITE.decorator_color (ParsableManimColor) – Color for the frame or pin. Default is
WHITE.pin_color (ParsableManimColor) – Color for the pin on the polaroid. Default is
WHITE.corner_rad (float) – Corner radius for frames. Default is
0.decorator_stroke_w (float) – Stroke width for frames. Default is
1.kwargs – Additional arguments passed to
Group.
Note
Captions apply only when
decorator_style == "polaroid".Example usage:
from manim import * from manim_beanim import Photo class Example_Photo(Scene): def construct(self): photo1 = Photo("figures/pic.png", decorator_style="polaroid", caption="My Photo") photo2 = Photo("figures/pic.png", decorator_style="techno") self.add(photo1, photo2)
- class Post_It[source]¶
Create a Post-it sticker graphic with a bullet list and pin decoration.
- Parameters:
to_dos (list[str]) – List of bullet points to display on the Post-it.
text_color (ParsableManimColor) – Color of the to-do text. Default is
BLACK.text_size (float) – Font size for the to-do text. Default is
35.pin_color (ParsableManimColor) – Color of the pin graphic. Default is
WHITE.kwargs – Additional arguments passed to
Group.
Example usage:
from manim import * from manim_beanim import Post_It class PostItScene(Scene): def construct(self): p_it = Post_It(to_dos=["Task 1", "Task 2"], text_color=BLACK, pin_color=RED) self.add(p_it)