Builtin Library
README.md
capture.fromEntity
Renders a screenshot orbiting a target entity. The camera frames the union world-space bounds of the entity (or a list of entities): it is aimed with a viewpoint plus basis, or a raw angle ({yaw, pitch}), stands at the distance that fits the subject (or a pinned distance), and leaves margin around it, with a configurable field of view and output size. Returns the picture as an image value, and writes a PNG as well when a path is given; fails when the entity is missing or its position can't be read. The call waits for the render and the GPU readback and returns only once the picture is read back (and the PNG written, when a path is given).