PlayVideoToImage

Family: Video · One form

What it does

PlayVideoToImage plays ToImage on a Video object. It takes imageID (an integer), and returns nothing. imageID is the id of an Image object, the one LoadImage returned: it is how the call knows what to act on.

Syntax

PlayVideoToImage(imageID integer)

Parameters

NameType
imageIDinteger

Every form returns

nothing

Example · generated

image = LoadImage("assets/sprite.png", 1)PlayVideoToImage(image)DO  Sync()LOOP

LoadImage is there to give the call something to act on; PlayVideoToImage is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

18 commands in Video