Language \ Environment \ Comparison
 
Index
 
  The Processing 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: reas at groupc.net
Name  

BVideo

   
Examples  
BVideo vid; 
 
void setup() 
{ 
  // Load and play the video in a loop 
  vid = loadVideo("street.mov"); 
  repeat(vid); 
} 
 
void loop() 
{ 
  // Draws the video at position [0,0] 
  image(vid, 0, 0); 
} 

Description   Datatype for storing video. Processing allows display of quicktime video files which may be placed in 2D and 3D space. Before a video is used, it must be loaded with the loadVideo() function. The BVideo object contains properties for the width and height of the image, as well as an array called pixels[] which contains the color values for the current frame of the video.
   
Syntax  
BVideo name 
name.width
name.height
name.pixels[]
   
Parameters  
name   any legal variable name

   
Usage   Application
   
Related   loadVideo()
video
pixels[]
   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas