Set the active mypaintr brush
Usage
set_brush(
brush = NULL,
type = c("both", "stroke", "fill"),
auto_solid_bg = NULL
)Arguments
- brush
Brush specification created with
tweak_brush(), an installed brush name,.mybfile path, JSON brush string, orNULLto switch the selected type back to solid rendering.- type
Which rendering channel to update:
"both","stroke", or"fill".- auto_solid_bg
Optional override for background-like fills.
Value
NULL, invisibly. If the active graphics device is not
mypaint_device(), this emits a warning and has no effect.
See also
Other brush management:
brush_dirs(),
brush_inputs(),
brush_settings(),
brushes(),
load_brush(),
tweak_brush()