Creates a light newsprint look with crisp ink, subtle dots, and optional paper texture.
Usage
patina_newspaper(
img,
halftone = 0.25,
dot_map = "h6x6o",
ink_spread = 1,
ink_strength = 0.22,
paper = NULL,
paper_tint = "#eee8d6",
paper_blend = 0.2,
misregister_px = 0L,
exposure = 1.08,
highlight_lift = 0.22,
line_gain = 0.22
)
Arguments
- img
magick image (rasterized plot)
- halftone
0..1 strength of dot pattern (applied to background only)
- dot_map
dithering map (e.g. "h6x6o","h4x4a")
- ink_spread
px radius of outward bleed around dark strokes
- ink_strength
0..1 strength of bleed halo
- paper
optional path/URL to paper texture; if NULL a tint is used
- paper_tint
hex color of newsprint
- paper_blend
0..1 blend of paper texture/tint
- misregister_px
integer pixel C/M plate offset (0 = off)
- exposure
overall brightness multiplier (~0.95–1.15)
- highlight_lift
0..1 brighten only very light backgrounds
- line_gain
0..1 deepen only the ink strokes after effects
Examples
if (FALSE) { # \dontrun{
if (requireNamespace("magick", quietly = TRUE)) {
img <- magick::image_blank(200, 200, "white")
patina_newspaper(img)
}
} # }