who_am_i_gif()
Render the who_am_i() lines as a terminal style GIF.
Usage
who_am_i_gif(
name,
likes,
learn,
work,
collab,
connect=True,
output="intro.gif",
width=800,
height=400,
frame_duration=1.5,
first_duration=1,
last_duration=4,
emoji_font=None
)Each frame adds one line. Emoji come from the system color emoji font (Apple Color Emoji, Noto Color Emoji, or Segoe UI Emoji).
Parameters
name: str-
Passed to the introduction lines (see who_am_i()).
likes: str-
Passed to the introduction lines (see who_am_i()).
learn: str-
Passed to the introduction lines (see who_am_i()).
work: str-
Passed to the introduction lines (see who_am_i()).
collab: str-
Passed to the introduction lines (see who_am_i()).
connect: bool = True-
Add the “Want to connect?” line.
output: str or pathlib.Path = "intro.gif"-
Path for the
.giffile. width: int = 800-
GIF size in pixels.
height: int = 800-
GIF size in pixels.
frame_duration: float = 1.5-
Seconds to show each middle frame.
first_duration: float = 1-
Seconds to hold the first frame.
last_duration: float = 4-
Seconds to hold the last frame.
emoji_font: str or pathlib.Path = None- A color emoji font file to use instead of the system one.
Returns
pathlib.Path- The output path.
Warns
UserWarning- If no emoji font is found; emoji are left out.