gen

command
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Command gen regenerates the reduced cover artwork in assets/ from a full-resolution source. The shipped asset is deliberately small — the cover is only ever projected into character cells, so detail beyond about twice the densest cell grid is bytes the binary carries for nothing — and this command is how that reduction is reproduced rather than being a mystery blob:

go run ./assets/gen -in /path/to/poster.png -out assets/cover.png

The output format follows the output extension: .png for flat poster art, where JPEG would smear the hard edges, .jpg for photographs. The reduction is an area average in linear light, the same filtering the renderer itself uses, so the shipped asset looks the way the renderer assumes its input looks.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL