-
- Notifications
You must be signed in to change notification settings - Fork 20
OSL ‐ Camera
DanimalsTCGYT edited this page Aug 4, 2024 · 5 revisions
You can use the camera in osl, and access it using data uris or using the built in system provided.
camera "start" // start the camera, this must be run first camera "get" "image" log data // logs the image from the camera as a data uri camera "get" "width" log data camera "get" "height" log data // log the dimensions of the camera itselfcamera "use_front" // sets the system to use the front camera camera "get" "hasbackcam" log data // logs true or false if the device has a back cameraimage "camera" // the easiest method, (and the fastest) and is mostly handled by the system, this is recommendeduuid = ouidNew() mainloop: image "load" data uuid image uuid // slower but you have more control over the loading processoriginOS is a web desktop gui with a self contained file system, programming languages, internet system and a whole lot of stuff an os should be able to do Use originOS here