JavaScript

JavaScript and Image-Filtering

The following short example shows how script tags can be applyed to images in order to create a simple image-filtering effect. In LiaScript, the script tag is a reimagined version of a JavaScript-component that has a lifetime, can be combined with input-tags and has an output as well. Additionally, scripts can be stiched together by an execution graph, which is defined by the output of the script-tags. The script is executed in the browser and can be used to manipulate the image in real-time.

Read More

Importing a local WebCam-stream into a Presentation

Sometimes you want to show a live video stream from a local WebCam in your presentation, without having to move to another application. This can be done with the following script and video-tag. It will ask for permission to access the camera and will display the video stream in a video element. If you click on the button again, the camera will be closed. Simply copy both tags into your LiaScript document and you will be able to open and close the camera stream with the button.

Read More