Skip to contents

Adds an image file to the scene.

Usage

add_image(
  scene,
  path,
  position = c(0, 0, 0),
  width = NULL,
  height = NULL,
  opacity = 1
)

Arguments

scene

A Scene object

path

Path to the image file

position

Center position

width

Desired width (height scales proportionally)

height

Desired height (width scales proportionally)

opacity

Opacity

Value

The Scene object (invisibly) for piping