New Hugo site in website/ with prosperon.dev theme (blue/gold/castle aesthetic), docs sidebar navigation, and content pages. Rewrote all doc files to align with the actual codebase: compositor+film2d rendering, use() modules (no global prosperon object), Pit language, script+JSON entity model. Added entities.md, front matter to all 70+ API docs, and updated API index for current module architecture. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
858 B
858 B
title, type
| title | type |
|---|---|
| camera | docs |
camera
list() function
Return an array of available camera device IDs.
Returns: An array of camera IDs, or undefined if no cameras are available.
open(id) function
Open a camera device with the given ID.
id: The camera ID to open.
Returns: A camera object on success, or throws an error if the camera cannot be opened.
name(id) function
Return the name of the camera with the given ID.
id: The camera ID to query.
Returns: A string with the camera's name, or throws an error if the name cannot be retrieved.
position(id) function
Return the physical position of the camera with the given ID.
id: The camera ID to query.
Returns: A string indicating the camera position ("unknown", "front", or "back").