Saltar al contenido principal
Receta número 190

Recetario · Capítulo 10 · Salida e integración

Un fanzine en negro y rosa flúor

Un trabajo a dos planchas, negro y un rosa fluorescente: fotos en duotono, un negro que sobreimprime y un rosa que brilla en Folio.

En esta página
Salida
Canvas · PDF
Postext
Probada con Postext 1.84.0
Requiere ≥ 1.84.0 · postext-pdf ≥ 1.84.0
Licencia
Actualizada el 13 nov 2026
Código MIT · Texto CC BY 4.0
  • Formato 148 × 210 mm
  • 2 columnas, medianil de 5 mm
  • IBM Plex Sans 8,8/12,4
  • Archivo Black
  • IBM Plex Mono
  • 8 páginas
  • Nivel
  • Postext 1.84.0
  • Compuesto en 178 ms
  • 212 líneas de código

En pocas palabras

Una revista de música pequeña impresa solo con dos tintas, negro y un rosa neón muy vivo. Las fotos salen en negro y rosa, el rosa brilla en la vista 3D, y el archivo de imprenta tiene exactamente dos planchas.

Lo que vas a componer

El número 7 de Pink Noise, un fanzine de música inventado: ocho páginas A5 grapadas, impresas en una máquina de dos tambores. Uno imprime negro y el otro un rosa fluorescente, y nada más llega al papel. El rosa compone el título de la cubierta, la franja de la apertura de la entrevista, las preguntas, la cita destacada y la contraportada; un tinte al 30 % llena la caja de la agenda. Las tres fotografías son originales en gris que se imprimen en duotono, negro en las sombras y rosa en los medios tonos. Folio deja el fanzine abierto sobre una mesa oscura, donde el rosa destaca sobre el papel.

Esta receta responde a

  • ¿Cómo imprimo un fanzine solo en negro y rosa flúor, con las fotos en duotono?

La respuesta corta

script.js · líneas 20–32en el código completo
// 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 } };

Ingredientes

Tipografía
Archivo Black, IBM Plex Sans, IBM Plex Mono (SIL OFL 1.1)
Recursos
  • crowd-900.jpg
  • guitarist-600.jpg
  • posters-560.jpg
  • Un público en un concierto en un sótano, en la cubierta (Generated With Diffusion Models, original)
  • Un guitarrista en un escenario pequeño (Generated With Diffusion Models, original)
  • La pared de un callejón cubierta de carteles (Generated With Diffusion Models, original)

Elaboración

#1 · Dos planchas, y el rosa es flúor

El código es la respuesta corta de arriba. print.plates nombra las planchas que imprime el trabajo, Black y PANTONE 806 C, y el PDF tiene esas dos separaciones y ninguna más (impresión a dos tintas). El rosa es una tinta plana; su acabado va en la tabla de tintas, como iría en el pedido a la imprenta, y la convierte en fluorescente: tiene su plancha propia y Folio la ilumina más que el papel (acabados). images pone las fotografías en las dos planchas, y CURVES da forma a cada una: el negro solo en las sombras, el rosa en los medios tonos y aflojando en los oscuros, para que el rosa no ensucie el negro.

#2 · La pantalla también enseña el duotono

script.js · líneas 280–305en el código completo
// 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());
}

El canvas y Folio pintan una imagen tal como es su archivo, así que una foto gris se vería gris, aunque se imprima en rosa y negro. La receta registra una segunda imagen para la pantalla: el mismo gris leído por las mismas CURVES, el negro multiplicado sobre el rosa como se superponen las tintas en el papel. El PDF sigue recibiendo el original gris, de imageBytes, y lo separa él.

#3 · Negro sobre rosa

script.js · líneas 60–74en el código completo
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) })),
  ] } } };

El negro es solo la plancha K, definido como color CMYK con overprint: true. Donde la letra negra o la franja negra de la cubierta tocan el rosa, se imprimen encima en vez de calarlo, y un pliego que caiga un poco fuera de registro no enseña un filo blanco. El título rosa sí cala el negro, como debe la letra sobre una franja oscura.

#4 · Folio sobre una mesa oscura

script.js · líneas 119–125en el código completo
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 },
};

Una tinta flúor necesita algo de oscuridad alrededor para leerse como tal. El fanzine queda abierto por la entrevista sobre una superficie lisa y oscura, con la luz plana de cielo cubierto, y la franja rosa y el rosa de la foto destacan sobre el papel blanco.

La receta completa

Sandbox
// ═══ 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 = 'es'; // @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

El script.js compuesto funciona tal cual: pégalo como script de módulo en cualquier página o abre la receta en CodePen. Carpeta de la receta en GitHub ↗ (se abre en una nueva pestaña)

Variantes

#Fotos solo en negro

Con una sola plancha para las imágenes, las fotos se imprimen en gris sobre el negro, y el rosa queda para la letra y las cajas.

-  plates: { inks: ['Black', 'PANTONE 806 C'], images: ['Black', 'PANTONE 806 C'],
+  plates: { inks: ['Black', 'PANTONE 806 C'], images: ['Black'],

#Un amarillo flúor

Cambia la tinta y su color en pantalla; las planchas, el acabado y las curvas siguen al nombre.

-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 } };

Renombra igual PANTONE 806 C en CURVES, en PRINT y en los hex de la paleta.

Errores frecuentes

  • Un color que no imprime ninguna de las dos planchas se proyecta sobre las dos tintas. Un azul de cuatricromía olvidado en un estilo sale como un rosa negruzco; lee los avisos offPlateColor de la comprobación antes de mandar el archivo.
  • Una tinta fluorescente no tiene una alternativa CMYK fiel. Una prueba o un PDF en RGB enseñan el hex, más apagado que la tinta en el papel.

Créditos

Texto
Texto original, CC BY 4.0
Imágenes
  • Un público en un concierto en un sótano, en la cubierta · Generated With Diffusion Models · original
  • Un guitarrista en un escenario pequeño · Generated With Diffusion Models · original
  • La pared de un callejón cubierta de carteles · Generated With Diffusion Models · original
Fuentes
Archivo Black (SIL OFL 1.1) · IBM Plex Sans (SIL OFL 1.1) · IBM Plex Mono (SIL OFL 1.1)
SandboxPDF