assets

package
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: 1 Imported by: 0

README

Assets

cover.png

The project's own reduction of the composition on the lid of the 1962 TwixT box, published by the Minnesota Mining and Manufacturing Company (3M) in its bookshelf game series: the wordmark, the player resting his chin on his hand, two tall red pegs flanking a row of linked black pegs over a field of holes. The reduction was drawn as a flat poster — hard edges, a handful of colours, none of the photographic texture a terminal cannot represent. The reference was a photograph of a 1962 box lid published at vintagegamenight.com, used as reference only and not redistributed here. The original lid artwork is © 1962 3M; the repository owner decided the project ships this reduction and treats the projection into terminal characters as the alteration.

The shipped file is deliberately small (213x320, sixteen colours): the picture is only ever drawn as character cells, so detail beyond about twice the densest cell grid would be bytes every binary carries for nothing. cover-source.png is that full-resolution source, 1024x1535, carried here so the recipe below is not a dead one. A regeneration command whose input lives only in somebody's temporary directory turns the shipped file into a blob the moment that directory is cleared, which is the thing this note exists to prevent.

Regenerate with:

go run ./assets/gen -in assets/cover-source.png -out assets/cover.png -colors 16

The generator reduces by area-averaging in linear light — the same filtering the renderer in internal/cover applies — and then snaps the result back onto its own dominant colours, so flat art stays flat instead of carrying thousands of one-off edge blends.

Documentation

Overview

Package assets embeds the artwork the interface ships. Like the docs package, it exists so there is exactly one copy: the bytes in the repository are the bytes in the binary.

Index

Constants

This section is empty.

Variables

View Source
var CoverPNG []byte

CoverPNG is the project's reduction of the 1962 box lid composition — the picture the cover's Photo art projects. It is 213x320 in sixteen colours: the cover only ever becomes character cells, so past about twice the densest cell grid more pixels are dead weight in every binary, and flat poster art carries no more than a handful of tones to begin with. README.md in this directory records what the picture is and how the reduction is regenerated.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Command gen regenerates the reduced cover artwork in assets/ from a full-resolution source.
Command gen regenerates the reduced cover artwork in assets/ from a full-resolution source.

Jump to

Keyboard shortcuts

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