texish 0.20.2 — Page-background colour and translucent colours
A patch release: a page-background colour primitive and translucent colours throughout.
\pagecolor
\pagecolor[alpha]{colour} sets the colour painted across the whole page, under all content. With a translucent or transparent colour the page composites correctly when the output is used as an overlay — a video lower-third, for instance:
\pagecolor[0.6]{black} % a 60%-opaque black band the video shows through
\pagecolor{transparent} % clear page; only the drawn content is opaque
It applies to the document's pages, so give it in the preamble. All four backends now paint the page background consistently: the PDF backend, which previously left the page unpainted, now fills it like the image, SVG and Graphics2D backends already did (so a transparent PDF page is possible too).
Translucent colours
Any colour may now carry alpha, three interchangeable ways:
- an optional
[alpha](0–1) on\color,\textcolor,\pagecolorand\colorbox—\color[0.5]{firebrick} - an eight-digit
#RRGGBBAAcode in any colour string, so it works everywhere a colour is taken, including\fill,\strokeand\fcolorbox—\colorbox{#00000066}{…} - the keyword
transparent
The two forms are equivalent: \textcolor[0.5]{firebrick}{…} and \textcolor{#b2222280}{…} set the same half-opaque word.
Suites are green at JVM 1348 / JS 1223 / Native 1238.
Native CLI binaries for Linux (x86_64, arm64) and macOS (arm64) attach below; other platforms use the JVM build.