FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Programs
(Moderators: fry, REAS)
   mediation
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: mediation  (Read 579 times)
damille

WWW
mediation
« on: Sep 18th, 2002, 8:09pm »

i gave the mediation code a whack and it didn't work.  i loaded the image into the data directory, but didn't understand what was meant by "modify the comments"
 
my output is just a white box.
 
any ideas?
 
thanks!
david
 
damille

WWW
Re: mediation
« Reply #1 on: Sep 18th, 2002, 8:13pm »

oh yeah, i'm using 44.
 
Processing

WWW Email
Re: mediation
« Reply #2 on: Sep 19th, 2002, 2:30pm »

The "modify the comments" statement is a small bug, it should say "To load a different image, put your image in the data directory of your sketch and replace "florence03.jpg" with the name of your image. See below:
 
void setImage() {  
   // To load a different image, put your image in the data  
  // directory of your sketch and replace "florence03.jpg"  
  // with the name of your image
  a = loadImage("florence03.jpg");  
  image(a, 0, 0);  
  for(int i=0; i<width*height; i++) {  
    aPixels[i] = pixels[i];  
  }  
}
 
Does this help?
 
damille

WWW
Re: mediation
« Reply #3 on: Sep 19th, 2002, 3:00pm »

thanks for the help!  - that's what i thought i should do.
 
so i thought i'd give exporting an applet a shot.  same deal: no dice.  but i opened up the java file, and saw that it had renamed the file name i had chosen [color.jpg] to int.jpg.  so i renamed my file [color.jpg] to int.jpg and everything's fine.
 
so maybe this is a bug report?
 
thanks for the help!
 
david
 
Processing

WWW Email
Re: mediation
« Reply #4 on: Sep 19th, 2002, 4:11pm »

thanks david, that is a bug. a very clever one. i'll add it to the list.  
 
we developed a new datatype called 'color' which is actually and 'int'. when the file is being exported, it converts every instance of 'color' to 'int'.
 
Pages: 1 

« Previous topic | Next topic »