Skip to contents

Convenience function to add a circle to the scene.

Usage

add_circle(
  scene,
  radius = 1,
  position = c(0, 0, 0),
  color = "#FFFFFF",
  fill_color = NULL,
  stroke_width = 2,
  fill_opacity = 0.5
)

Arguments

scene

A Scene object

radius

Circle radius

position

Center position

color

Stroke color

fill_color

Fill color

stroke_width

Stroke width

fill_opacity

Fill opacity

Value

The Scene object (invisibly) for piping

Examples

if (FALSE) { # \dontrun{
scene("circle_demo") %>%
  add_circle(radius = 2, color = "red") %>%
  draw_border() %>%
  render()
} # }