Directories
¶
| Path | Synopsis |
|---|---|
|
Package ascii maps Unicode text onto the 95 printable ASCII characters.
|
Package ascii maps Unicode text onto the 95 printable ASCII characters. |
|
Package blankfont generates, in memory, the "BlankMono" TrueType font that the browser forces on every page: two empty glyphs, a fixed advance of half an em, and a cmap format 13 that maps every Unicode code point to the empty glyph.
|
Package blankfont generates, in memory, the "BlankMono" TrueType font that the browser forces on every page: two empty glyphs, a fixed advance of half an em, and a cmap format 13 that maps every Unicode code point to the empty glyph. |
|
Package browser drives a headless Chrome through the DevTools Protocol with chromedp: it sizes the viewport to the grid, injects the BlankMono grid stylesheet in every document, takes screenshots and runs the text walker.
|
Package browser drives a headless Chrome through the DevTools Protocol with chromedp: it sizes the viewport to the grid, injects the BlankMono grid stylesheet in every document, takes screenshots and runs the text walker. |
|
Package caption turns a picture into text for a caption: a social network's description field, set in the phone's proportional system font, where ordinary ASCII art falls apart because an "i" is narrower than a "W", and where runs of spaces and spaces at the start of a line are dropped.
|
Package caption turns a picture into text for a caption: a social network's description field, set in the phone's proportional system font, where ordinary ASCII art falls apart because an "i" is narrower than a "W", and where runs of spaces and spaces at the start of a line are dropped. |
|
Package frame holds the composed ASCII frame: a Cols x Rows matrix of printable ASCII bytes, plus the text runs that get overlaid on it.
|
Package frame holds the composed ASCII frame: a Cols x Rows matrix of printable ASCII bytes, plus the text runs that get overlaid on it. |
|
Package grid defines the cell geometry shared by the terminal, the Chromium viewport and the renderer: one terminal cell covers exactly CellW x CellH pixels of the page.
|
Package grid defines the cell geometry shared by the terminal, the Chromium viewport and the renderer: one terminal cell covers exactly CellW x CellH pixels of the page. |
|
Package pixel holds the small image helpers shared by the browser and the renderer.
|
Package pixel holds the small image helpers shared by the browser and the renderer. |
|
Package render turns a page screenshot into an ASCII frame: mean luma per cell, optional Floyd-Steinberg dithering on the cell grid, a character ramp, and the text layer on top.
|
Package render turns a page screenshot into an ASCII frame: mean luma per cell, optional Floyd-Steinberg dithering on the cell grid, a character ramp, and the text layer on top. |
|
Package ui draws frames on the terminal with tcell.
|
Package ui draws frames on the terminal with tcell. |
Click to show internal directories.
Click to hide internal directories.