Templates

Built-in meme templates available by name with the @ prefix.

Built-in Templates

TemplateDescriptionText Slots
blankWhite canvastop, bottom, center
darkDark/black canvastop, bottom, center
two_panelTwo-panel vertical splittop, bottom
three_panelThree-panel verticaltop, center, bottom
four_panel2x2 grid(4 entries)
bottom_textImage with bottom captionbottom
caption_barWhite bar caption above imagetop, bottom
wideWide aspect ratio canvastop, bottom, center
tallTall aspect ratio canvastop, bottom, center
squareSquare canvastop, bottom, center

Usage

@blank "Hello World";
@two_panel "Expectation" "Reality";
@four_panel "A" "B" "C" "D";

Custom Templates

Use a file path to any image as a template:

@"photos/cat.jpg" "Caption";
@"assets/background.png" { top: "Title" bottom: "Subtitle" }

String template paths resolve relative to the script's directory.

Meme Templates (assets)

Additional templates from assets/templates/meme/ are available with the meme. prefix:

@meme.shrek_smirk "When the code compiles";
@meme.kid_crying "Production is down";

Available meme templates depend on the installed asset pack.

See Also