Represents geometric shapes in a scene.
Super class
manimR::MObject -> ShapeObject
Public fields
shape_typeType of shape
widthShape width
heightShape height
radiusRadius (for circles)
fill_colorFill color
fill_opacityFill opacity
stroke_widthStroke width
Methods
Inherited methods
manimR::MObject$add_updater()manimR::MObject$align_to()manimR::MObject$clear_updaters()manimR::MObject$copy()manimR::MObject$generate_target()manimR::MObject$get_bottom()manimR::MObject$get_bounding_box()manimR::MObject$get_center()manimR::MObject$get_corner()manimR::MObject$get_height()manimR::MObject$get_left()manimR::MObject$get_right()manimR::MObject$get_top()manimR::MObject$get_width()manimR::MObject$match_color()manimR::MObject$move_to()manimR::MObject$next_to()manimR::MObject$print()manimR::MObject$rotate()manimR::MObject$scale()manimR::MObject$set_color()manimR::MObject$set_opacity()manimR::MObject$shift()manimR::MObject$to_corner()manimR::MObject$to_edge()
Method new()
Create a new ShapeObject
Usage
ShapeObject$new(
shape_type = "rectangle",
position = c(0, 0, 0),
color = "#FFFFFF",
fill_color = NULL,
width = 1,
height = 1,
radius = 0.5,
stroke_width = 2,
fill_opacity = 0.5,
opacity = 1
)