Skip to contents

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, .myb file path, JSON brush string, or NULL to 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.