In breve
Una piccola rivista musicale stampata con due soli inchiostri, il nero e un rosa neon molto acceso. Le foto escono in nero e rosa, il rosa brilla nella vista 3D e il file di stampa ha esattamente due lastre.
Che cosa comporrai
Il numero 7 di Pink Noise, una fanzine musicale inventata: otto pagine A5 a punto metallico, stampate su una macchina a due tamburi. Uno stampa il nero e l’altro un rosa fluorescente, e nient’altro arriva sulla carta. Il rosa compone il titolo di copertina, la fascia dell’apertura dell’intervista, le domande, la citazione in evidenza e la quarta di copertina; un retino al 30 % riempie il riquadro degli appuntamenti. Le tre fotografie sono originali in grigio che si stampano in bicromia, il nero nelle ombre e il rosa nei mezzitoni. Folio posa la fanzine aperta su un tavolo scuro, dove il rosa risalta sulla carta.
Questa ricetta risponde a
- Come stampo una fanzine solo in nero e rosa fluo, con le foto in bicromia?
La risposta breve
// The pink is a spot ink; the ink table says it is fluorescent, as the printer will be told.
// The screen paints its hex, Folio makes it stand brighter than the paper, and the PDF puts it
// on a plate of its own. The ink table also takes the name the poster files gave it.
const PINK = { name: 'PANTONE 806 C', cmyk: { c: 0, m: 77, y: 0, k: 0 } };
const pink = (hex, tint) => ({ hex, model: 'spot', spot: { ...PINK, tint } });
// The job prints these two plates and nothing else. Pictures print as duotones: each
// plate takes the grey of a pixel through its curve, [tone, ink] in percent.
const CURVES = { Black: [[0, 0], [45, 8], [100, 92]], // the shadows
'PANTONE 806 C': [[0, 0], [35, 45], [70, 80], [100, 60]] }; // the middle tones
const PRINT = { standard: 'pdfx4', outputProfile: 'fogra51',
inks: [{ name: 'PANTONE 806 C', aliases: ['Fluo pink'], finish: { kind: 'fluorescent' } }],
plates: { inks: ['Black', 'PANTONE 806 C'], images: ['Black', 'PANTONE 806 C'],
curves: CURVES } };
Ingredienti
- Funzionalità
- Inchiostri specialiTinte piatte e tabella degli inchiostriPDF in CMYK e in scala di grigiVisualizzatore di libri in 3D (Folio)Carta, rilegatura, scrivania e luce (Folio)Tavolozza di colori semanticaCopertine, frontespizi e colophonStili di titoloAperture progettateTesto, filetti e riquadri nei progetti di paginaImmagini nei progetti di paginaRiquadriFigure e tabelle come risorseEsportazione in PDFPagine su un canvas
- Usa anche
- Colonne in un riquadro o nel testoAttributi dei titoliFigure proprio quiFascia di capitolo a tutta larghezzaColore della cartaFont incorporati nel PDFTipi di risorsa personalizzatiTestatine per sezioneRiquadri a tutta larghezzaCapitoli non numerati
- Tipo
- Archivo Black, IBM Plex Sans, IBM Plex Mono (SIL OFL 1.1)
- Risorse
crowd-900.jpgguitarist-600.jpgposters-560.jpg- A crowd at a basement gig, on the cover (Generated With Diffusion Models, originale)
- A guitarist on a small stage (Generated With Diffusion Models, originale)
- An alley wall layered with posters (Generated With Diffusion Models, originale)
Preparazione
#1 · Due lastre, e il rosa è fluo
Il codice è la risposta breve qui sopra. print.plates nomina le lastre che il lavoro stampa, Black e PANTONE 806 C, e il PDF ha quelle due separazioni e nessun’altra (stampa a due colori). Il rosa è una tinta piatta; la sua finitura sta nella tabella degli inchiostri, come starebbe nell’ordine al tipografo, e lo rende un inchiostro fluorescente: ha una lastra propria e Folio lo illumina più della carta (finiture). images mette le fotografie su entrambe le lastre, e CURVES dà forma a ciascuna: il nero solo nelle ombre, il rosa nei mezzitoni e in calo negli scuri, così il rosa non sporca mai il nero.
#2 · Anche lo schermo mostra la bicromia
// The PDF separates the grey original through CURVES. The screen would paint it grey, so the
// picture registered for the canvas and Folio is the same grey run through the same curves:
// the black over the pink, multiplied as inks lie on paper. The PDF still gets the original.
const ink = (curve, tone) => { // a curve read at a tone, both 0–1
const i = curve.findIndex(([x]) => x / 100 >= tone);
const [[x0, y0], [x1, y1]] = [curve[Math.max(0, i - 1)], curve[Math.max(0, i)]];
return (x1 === x0 ? y1 : y0 + ((tone * 100 - x0) * (y1 - y0)) / (x1 - x0)) / 100;
};
const PINK_RGB = [0xff, 0x3e, 0xa5];
async function loadDuotone(fileId, url) {
await loadImage(fileId, url); // the grey bytes, kept for the PDF
const grey = await createImageBitmap(new Blob([imageBytes(fileId)]));
const canvas = new OffscreenCanvas(grey.width, grey.height);
const g = canvas.getContext('2d');
g.drawImage(grey, 0, 0);
const img = g.getImageData(0, 0, canvas.width, canvas.height);
for (let i = 0; i < img.data.length; i += 4) {
const tone = 1 - img.data[i] / 255;
const [k, p] = [ink(CURVES.Black, tone), ink(CURVES['PANTONE 806 C'], tone)];
for (let c = 0; c < 3; c++) {
img.data[i + c] = 255 * (1 - k) * (1 - p * (1 - PINK_RGB[c] / 255));
}
}
g.putImageData(img, 0, 0);
registerResourceImage(fileId, canvas.transferToImageBitmap());
}
Il canvas e Folio dipingono un’immagine così com’è il suo file, quindi una foto grigia lì apparirebbe grigia, anche se si stampa in rosa e nero. La ricetta registra una seconda immagine per lo schermo: lo stesso grigio letto attraverso le stesse CURVES, il nero moltiplicato sul rosa come gli inchiostri si sovrappongono sulla carta. Il PDF riceve sempre l’originale grigio, da imageBytes, e lo separa da sé.
#3 · Nero sul rosa
const BAND = 134; // mm from the top of the bleed to the black band
const cover = { ...bare, id: 'cover', advancedDesign: { enabled: true, minHeight: mm(150),
slot: { elements: [
{ kind: 'image', id: 'photo', resourceId: 'crowd', fit: 'cover', focus: { x: 0.35, y: 0.5 },
placement: at('bleed', 'top-left', 0, 0, { width: 'fill', height: mm(BAND + 4) }) },
{ kind: 'box', id: 'band', style: { backgroundColor: col('black') },
placement: at('bleed', 'top-left', 0, BAND + 3, { width: 'fill', height: mm(90) }) },
text('issue', '{attr.issue}', label(8, col('pink')), at('page', 'top-left', 12, 12)),
text('title', '{titleText}', { fontFamily: DISPLAY, fontSize: pt(70), lineHeight: 0.82,
textTransform: 'uppercase', color: col('pink') },
at('page', 'top-left', 10, BAND + 9, { width: mm(130) })),
text('lines', '{attr.lines}', { fontFamily: SANS, fontWeight: 700, fontSize: pt(11),
lineHeight: 1.25, color: col('paper') }, at('page', 'top-left', 12, BAND + 55,
{ width: mm(110) })),
] } } };
Il nero è la sola lastra K, definito come colore CMYK con overprint: true. Dove il testo nero o la fascia nera della copertina incontrano il rosa, il nero si stampa sopra invece di fare risparmio, e un foglio che esce un po’ fuori registro non mostra alcun filo bianco. Il titolo rosa invece fa risparmio nel nero, come deve fare il testo su una fascia scura.
#4 · Folio su un tavolo scuro
const folio = {
tilt: 22, yaw: -14,
paper: { type: 'uncoated', grammage: 100, shade: '#ffffff' },
binding: { type: 'saddleStitch', cover: 'pages' },
surface: { type: 'plain', color: { hex: '#2b2b30', model: 'hex' } },
lighting: { environment: 'overcast', intensity: 1.05 },
};
Un inchiostro fluorescente ha bisogno di un po’ di buio intorno per leggersi come tale. La fanzine resta aperta sull’intervista su una superficie liscia e scura, sotto la luce piatta di un cielo coperto, e la fascia rosa e il rosa della foto risaltano sulla carta bianca.
La ricetta completa
// ═══ Postext Cookbook · Nº 190 · A zine in black and fluorescent pink ════════════════════
// https://postext.dev/en/cookbook/fluorescent-pink-zine
// Code: MIT · Text: original (CC BY 4.0) · Photographs: diffusion models
// Fonts: Archivo Black, IBM Plex Sans, IBM Plex Mono (SIL OFL 1.1) · Needs postext ≥ 1.84.0
//
// A music zine printed on two plates, black and a fluorescent pink. The pink is a spot ink
// with a fluorescent finish; the job prints those two plates and nothing else, so the grey
// photographs print as duotones and every other colour is projected onto the two inks.
import {
buildDocumentWithFonts, renderPageToCanvas, registerResourceImage,
} from 'https://esm.sh/postext';
import { renderToPdf, decompressWoff2 } from 'https://esm.sh/postext-pdf';
import { createFolioFromDocument } from 'https://esm.sh/postext-folio';
const LANG = 'en'; // @lang: the language of the sample document ('en' | 'es')
const RECIPE = 'fluorescent-pink-zine';
// ─── 1 · Design ─────────────────────────────────────────────────────────────
// #region answer: two plates: black and a fluorescent pink that glows
// The pink is a spot ink; the ink table says it is fluorescent, as the printer will be told.
// The screen paints its hex, Folio makes it stand brighter than the paper, and the PDF puts it
// on a plate of its own. The ink table also takes the name the poster files gave it.
const PINK = { name: 'PANTONE 806 C', cmyk: { c: 0, m: 77, y: 0, k: 0 } };
const pink = (hex, tint) => ({ hex, model: 'spot', spot: { ...PINK, tint } });
// The job prints these two plates and nothing else. Pictures print as duotones: each
// plate takes the grey of a pixel through its curve, [tone, ink] in percent.
const CURVES = { Black: [[0, 0], [45, 8], [100, 92]], // the shadows
'PANTONE 806 C': [[0, 0], [35, 45], [70, 80], [100, 60]] }; // the middle tones
const PRINT = { standard: 'pdfx4', outputProfile: 'fogra51',
inks: [{ name: 'PANTONE 806 C', aliases: ['Fluo pink'], finish: { kind: 'fluorescent' } }],
plates: { inks: ['Black', 'PANTONE 806 C'], images: ['Black', 'PANTONE 806 C'],
curves: CURVES } };
// #endregion
// Black is the K plate alone, and it overprints: on the pink it prints over the ink instead of
// knocking a hole that a sheet out of register would show as a white rim.
const palette = {
black: { hex: '#1b1a1d', model: 'cmyk', cmyk: { c: 0, m: 0, y: 0, k: 100 }, overprint: true },
pink: pink('#ff3ea5'),
pink30: pink('#ffc5e4', 30),
paper: { hex: '#ffffff', model: 'hex' },
};
const col = (id) => ({ ...palette[id], paletteId: id });
const colorPalette = [...Object.entries(palette).map(([id, value]) => ({ id, name: id, value })),
{ id: 'main-color', name: 'pink (defaults)', value: palette.pink }];
const [TRIM_W, TRIM_H] = [148, 210]; // A5, an A4 sheet folded once
const MARGIN = { top: 16, bottom: 18, inner: 14, outer: 12 };
const LEAD = 12.4; // pt
Lo script.js composto funziona così com’è: incollalo nello script modulo di qualsiasi pagina, oppure apri la ricetta su CodePen. Cartella della ricetta su GitHub ↗ (si apre in una nuova scheda)
Varianti
#Stampa le foto solo in nero
Con una sola lastra per le immagini, le foto si stampano in semplici toni di grigio sul nero, e il rosa resta per il testo e i riquadri.
- plates: { inks: ['Black', 'PANTONE 806 C'], images: ['Black', 'PANTONE 806 C'],
+ plates: { inks: ['Black', 'PANTONE 806 C'], images: ['Black'],#Un giallo fluo al suo posto
Cambia l’inchiostro e il suo colore a schermo; le lastre, la finitura e le curve seguono il nome.
-const PINK = { name: 'PANTONE 806 C', cmyk: { c: 0, m: 77, y: 0, k: 0 } };
+const PINK = { name: 'PANTONE 803 C', cmyk: { c: 0, m: 0, y: 92, k: 0 } };Rinomina allo stesso modo PANTONE 806 C in CURVES, in PRINT e negli hex della palette.
Errori frequenti
- Un colore che nessuna delle due lastre stampa viene proiettato sui due inchiostri. Un blu di quadricromia rimasto in uno stile esce come un rosa nerastro; leggi le segnalazioni
offPlateColordel controllo preliminare prima di inviare il file. - Un inchiostro fluorescente non ha un colore alternativo CMYK fedele. Una prova o un PDF RGB mostrano l’hex, più spento dell’inchiostro sulla carta.
Crediti
- Ricetta
- Ignacio Ferro
- Testo
- Testo originale, CC BY 4.0
- Immagini
- A crowd at a basement gig, on the cover · Generated With Diffusion Models · originale
- A guitarist on a small stage · Generated With Diffusion Models · originale
- An alley wall layered with posters · Generated With Diffusion Models · originale
- Font
- Archivo Black (SIL OFL 1.1) · IBM Plex Sans (SIL OFL 1.1) · IBM Plex Mono (SIL OFL 1.1)
- Codice
- MIT, come Postext
Modifica questo testo ↗ (si apre in una nuova scheda)Cartella della ricetta su GitHub ↗ (si apre in una nuova scheda)


