Skip to contents

Adds a line between two points.

Usage

add_line(
  scene,
  start = c(-1, 0, 0),
  end = c(1, 0, 0),
  color = "#FFFFFF",
  stroke_width = 2,
  opacity = 1
)

Arguments

scene

A Scene object

start

Start point

end

End point

color

Line color

stroke_width

Line width

opacity

Opacity

Value

The Scene object (invisibly) for piping