A grid grob that draws its path as a soft cloud of dots instead of a stroked
line: it re-roughens the centreline at device resolution, then scatters dots
around it with spray_scatter(), for the airbrush / spray-can medium (no hard
outline). Coordinates are npc [0,1]; the scatter happens in device inches
inside makeContent().
Usage
sketch_spray_grob(
x,
y,
id = NULL,
spread = 0.05,
density = 150,
dot_r = 0.004,
roughness = 1,
bowing = 1,
n_passes = 1L,
seed = NULL,
gp = gpar(),
name = NULL,
vp = NULL
)Arguments
- x, y
Numeric vectors of npc [0,1] coordinates.
- id
Integer vector grouping coordinates into separate strokes (
NULLtreats all points as one).- spread, density, dot_r
Passed to
spray_scatter()(in inches).- roughness, bowing, n_passes, seed
Sketch parameters for the centreline.
- gp
A
grid::gpar(); itscolbecomes the dot fill,alphais honoured.- name, vp
Passed to
grid::gTree().
