Skip to contents

Render a scene or grab tree using a backend device

Usage

render_scene(grab, device, width_mm = NULL, height_mm = NULL)

Arguments

grab

A grab_bag or grab_atom.

device

A grab device (list of draw functions). See device_svg().

width_mm

Device width in mm (used if grab is the root scene).

height_mm

Device height in mm.

Value

The device, invisibly. Side effects depend on the backend.