Draw commands#
Draw commands are the bread and butter of ttt. Here's all the wonderful things you can do with this command group:
-
Draw images and built-in Icons:
โฑ ttt draw icon -d 39๐ทฅ๐ถฌโโ๐ท๐ต ๐ทฅโโโโ๐ต โ๐ด๐ดฅ๐ฎ ๐ดโ ๐ฏง๐ดโโโโ๐ดด
-
Cut off sprites from sprite atlases:
โฑ ttt draw atlas icons.png -w 16 -h 16 -ox 8 -oy 8 -gx 8 -gy 8 -i 318โ๐ท๐ท๐ท๐ท๐ท๐ท ๐ถ๐ด๐ถท๐ด๐ด๐ด๐ถจ โ๐บซ โ โ๐ทคโโโ๐ท๐ท
-
Draw banners of repeating patterns:
โฑ ttt draw banner -d flo1๐ตท๐ทโโ๐ฎ ๐ฎ ๐ด ๐ทกโ๐ท ๐ดฆ๐ฎ ๐ฎ โโ๐ถฟ๐ต๐ตท๐ทโโ๐ฎ ๐ฎ ๐ด ๐ทกโ๐ท ๐ดฆ๐ฎ ๐ฎ โโ๐ถฟ๐ต๐ตท๐ทโโ๐ฎ ๐ฎ ๐ด ๐ทกโ๐ท ๐ดฆ๐ฎ ๐ฎ โโ๐ถฟ๐ต๐ตท๐ท โโโโโโ ๐ทฅโ๐ทค๐บฃ๐ถซโ๐ตฐ๐บ ๐ทฅโ๐ทค โโโโโโโโโโโโ ๐ทฅโ๐ทค๐บฃ๐ถซโ๐ตฐ๐บ ๐ทฅโ๐ทค โโโโโโโโโโโโ ๐ทฅโ๐ทค๐บฃ๐ถซโ๐ตฐ๐บ ๐ทฅโ๐ทค โโโโโโโโ โโโ๐ฎ ๐ฎ โ ๐ด ๐ดฆ๐ถซ๐ทค๐ทฅ๐ฎ ๐ทค๐ทฅ๐ตฐ๐ด๐ด โ๐ฎ ๐ฎ โโโโโโ๐ฎ ๐ฎ โ ๐ด ๐ดฆ๐ถซ๐ทค๐ทฅ๐ฎ ๐ทค๐ทฅ๐ตฐ๐ด๐ด โ๐ฎ ๐ฎ โโโโโโ๐ฎ ๐ฎ โ ๐ด ๐ดฆ๐ถซ๐ทค๐ทฅ๐ฎ ๐ทค๐ทฅ๐ตฐ๐ด๐ด โ๐ฎ ๐ฎ โโโโโ โ๐บจ ๐ถโโ๐ทค๐ทฅโโโโโ๐ทค๐ทฅโโ๐ต ๐บซโโ๐บจ ๐ถโโ๐ทค๐ทฅโโโโโ๐ทค๐ทฅโโ๐ต ๐บซโโ๐บจ ๐ถโโ๐ทค๐ทฅโโโโโ๐ทค๐ทฅโโ๐ต ๐บซโโ๐บจ โ๐ต โโ๐บซโโ๐ตท๐ทโโ๐ถฎโโ๐ท๐ตโโ๐บจโโ ๐ถโโ๐ต โโ๐บซโโ๐ตท๐ทโโ๐ถฎโโ๐ท๐ตโโ๐บจโโ ๐ถโโ๐ต โโ๐บซโโ๐ตท๐ทโโ๐ถฎโโ๐ท๐ตโโ๐บจโโ ๐ถโโ๐ต โโโโโโ ๐ทฅโโ๐ด๐ทโ๐ท๐ดขโโ๐ทค โโโโโโโโโโโโ ๐ทฅโโ๐ด๐ทโ๐ท๐ดขโโ๐ทค โโโโโโโโโโโโ ๐ทฅโโ๐ด๐ทโ๐ท๐ดขโโ๐ทค โโโโโโโโ ๐ดฆ๐ถซโโ๐ถฎโ๐บฃ๐ด โ๐ด โโโ ๐ด โ๐ด๐บ โ๐ถฎโโ๐ตฐ๐ด๐ดฆ๐ถซโโ๐ถฎโ๐บฃ๐ด โ๐ด โโโ ๐ด โ๐ด๐บ โ๐ถฎโโ๐ตฐ๐ด๐ดฆ๐ถซโโ๐ถฎโ๐บฃ๐ด โ๐ด โโโ ๐ด โ๐ด๐บ โ๐ถฎโโ๐ตฐ๐ด๐ดฆ๐ถซ ๐ด๐บซโโโโโ ๐บซ๐ฎ๐บจ โโโโโ๐บจ๐ด๐ด๐บซโโโโโ ๐บซ๐ฎ๐บจ โโโโโ๐บจ๐ด๐ด๐บซโโโโโ ๐บซ๐ฎ๐บจ โโโโโ๐บจ๐ด๐ด๐บซ
ttt draw image#
Usage:
ttt draw image [OPTIONS] FILE | URL
Draw a picture provided by the given FILE or URL.
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--invert |
boolean | Draw using inverted colors. | False |
--braille |
boolean | Draw using braille dots instead of block characters. | False |
-o,--outline |
"none" | "soft" | "hard" | "shadow" |
Draw using an outline effect. This option can be repeated. | None |
--help |
boolean | Show this message and exit. | False |
ttt draw icon#
Usage:
ttt draw icon [OPTIONS]
Draw a built-in icon.
Icons by PiiiXL (https://piiixl.itch.io).
Options:
| Name | Type | Description | Default |
|---|---|---|---|
-d,--design |
text | Icon design number or alias. Use command 'list icons' to see all icons. | 31 |
--invert |
boolean | Draw using inverted colors. | False |
--braille |
boolean | Draw using braille dots instead of block characters. | False |
-o,--outline |
"none" | "soft" | "hard" | "shadow" |
Draw using an outline effect. This option can be repeated. | None |
--help |
boolean | Show this message and exit. | False |
ttt draw atlas#
Usage:
ttt draw atlas [OPTIONS] FILE | URL
Draw a sprite from the sprite atlas provided by the given FILE or URL.
Options for width, height, offsets, and gaps are used to define the sprite layout, and the index option specifies a particular sprite to draw. If no index is provided, all sprites are drawn consecutively.
Options:
| Name | Type | Description | Default |
|---|---|---|---|
-w,--width |
integer | Width of each sprite in the atlas (in pixels). | required |
-h,--height |
integer | Height of each sprite in the atlas (in pixels). | required |
-ox,--offset-x |
integer | Horizontal offset from the top-left corner of the atlas to the first sprite (in pixels). Default is 0. | 0 |
-oy,--offset-y |
integer | Vertical offset from the top-left corner of the atlas to the first sprite (in pixels). Default is 0. | 0 |
-gx,--gap-x |
integer | Horizontal gap between sprites in the atlas (in pixels). Default is 0. | 0 |
-gy,--gap-y |
integer | Vertical gap between sprites in the atlas (in pixels). Default is 0. | 0 |
-i,--index |
integer | Index of the sprite to draw (0-based). If not provided, all sprites are drawn consecutively. | 0 |
--invert |
boolean | Draw using inverted colors. | False |
--braille |
boolean | Draw using braille dots instead of block characters. | False |
-o,--outline |
"none" | "soft" | "hard" | "shadow" |
Draw using an outline effect. This option can be repeated. | None |
--help |
boolean | Show this message and exit. | False |
ttt draw banner#
Usage:
ttt draw banner [OPTIONS]
Draw a full-width banner using repeating patterns.
Patterns by Lettercore (https://lettercore.itch.io).
Options:
| Name | Type | Description | Default |
|---|---|---|---|
-l,--lines |
integer | Number of text lines to fill (overriden by '-repeat'). | None |
-r,--repeat |
integer range [1, โ) | Repeat the full pattern x times. | None |
-d,--design |
text | Pattern design number or alias. Use command 'list patterns' to see all patterns. | flo1 |
--invert |
boolean | Draw using inverted colors. | False |
--braille |
boolean | Draw using braille dots instead of block characters. | False |
-o,--outline |
"none" | "soft" | "hard" | "shadow" |
Draw using an outline effect. This option can be repeated. | None |
--help |
boolean | Show this message and exit. | False |