Templates
Built-in meme templates available by name with the @ prefix.
Built-in Templates
| Template | Description | Text Slots |
|---|---|---|
blank | White canvas | top, bottom, center |
dark | Dark/black canvas | top, bottom, center |
two_panel | Two-panel vertical split | top, bottom |
three_panel | Three-panel vertical | top, center, bottom |
four_panel | 2x2 grid | (4 entries) |
bottom_text | Image with bottom caption | bottom |
caption_bar | White bar caption above image | top, bottom |
wide | Wide aspect ratio canvas | top, bottom, center |
tall | Tall aspect ratio canvas | top, bottom, center |
square | Square canvas | top, 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
- Meme Literals -- using templates
- Styles -- text customization