Image sprite geometry that positions a PNG texture billboard between two 3D points. The image is encoded as a data URI and rendered facing the camera in the three-brain viewer.
Super class
AbstractGeom -> SpriteGeom
Public fields
clickableLogical; always
FALSEfor sprite geometry.typeGeometry type string (
"imagesprite").image_uriBase64 data URI of the PNG image used as the sprite texture.
aspect_ratioWidth-to-height ratio of the source image, used to preserve proportions when scaling.
Methods
SpriteGeom$new()
Create a new image sprite geometry.
Usage
SpriteGeom$new(
name,
image_path,
entry_position = c(1, 0, 0),
target_position = c(0, 0, 0),
...
)Arguments
nameUnique character name.
image_pathPath to a PNG image file on disk.
entry_positionNumeric vector of length 3: one end of the sprite axis (e.g. electrode entry point). Default
c(1, 0, 0).target_positionNumeric vector of length 3: the other end of the sprite axis (e.g. electrode target point). Default
c(0, 0, 0)....Additional arguments forwarded to
AbstractGeom.