Skip to contents

Load an installed mypaint brush

Usage

load_brush(brush, paths = default_mypaint_brush_dirs(), normalize = "all")

Arguments

brush

Brush name like "classic/pencil" or a path to a .myb file.

paths

Optional brush directories. Defaults to locally discovered mypaint-brushes locations.

normalize

One of "all", "size", "tracking", or "none". Defaults to "all"; use "none" to explicitly bypass normalization.

Value

A reusable brush specification object.

Examples

if (length(brushes())) {
  x <- load_brush(brushes()[[1]])
  stopifnot(inherits(x, "mypaintr_brush"))
}