Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : quick! help setting up a video array?

$
0
0
Well it seems  that the movieEvent() it is not really necessary, I got this from conclusion from a simple example I wrote:
That is probably wrong, gonna ask about :)


  1. import processing.video.*;

  2. Movie um, dois;

  3. void setup(){
  4.   size (800,300, P2D);
  5.   um = new Movie(this, "tet.mov");
  6.   dois = new Movie(this, "tet2.mov");
  7. um.loop();
  8. dois.loop();
  9. }

  10. void draw(){
  11.   background(0);
  12.   image(um, 10, 0);
  13.   image(dois, 400, 0);
  14. }
But although this works it crashes some time later giving me this message:

java(483,0xacd53a28) malloc: *** error for object 0x16615d0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

Don.t know why. 
The PGraphics  is a new canvas to play with. It can be displayed as a PImage, look at reference



Viewing all articles
Browse latest Browse all 1768

Trending Articles