|
Author |
Topic: background image (Read 395 times) |
|
SPRITEMUSKETEER
|
background image
« on: Sep 22nd, 2004, 1:36pm » |
|
Hi, I am new to processing and have stumbled on a problem. I have been playing about making an animation on a background image but I can't seem to update the image. I don't know where it hides I have searched the entire computer for the original image and its not there but yet it still appears in the browser. Has anyone come across this problem. Thanks Simon
|
|
|
|
REAS
|
Re: background image
« Reply #1 on: Sep 24th, 2004, 12:21pm » |
|
simon, can you please explain more. what do you mean by browser? what do you mean by background image? processing will only load images from within the processing folder and will only write them there as well.
|
|
|
|
SPRITEMUSKETEER
|
Re: background image
« Reply #2 on: Sep 24th, 2004, 10:11pm » |
|
HI REAS i am working on a mac osx.. and adding a background image to your nonlinear motion example by using void setup() { size(500, 100); bg = loadImage("calendar.gif"); noStroke(); framerate(30); aPos = bPos = cPos = dPos = ePos = width/2; } int a; void loop() { background(bg); fill(1); what confuses me is I have exported it to to web and then tried to update the image by replacing the image in the data folder. But when I view it in the web browser it still shows the old image, even when I empty the cashe etc. Hope this is a bit clearer. Thanks Simon
|
|
|
|
mKoser
|
Re: background image
« Reply #3 on: Sep 24th, 2004, 11:09pm » |
|
Simon, This has to do with the fact that when you export to web, all external files (be this images, fonts, text-files or whatever you might have been importing into you sketch with code) will be packaged into the JAR-file. Then every time you run the applet, it will look inside the JAR-file for the image you are loading. Changing the image inside the /data/ folder only affacts your program when it runs INSIDE processing. If you want to update your image, and see it in your browser, you need to replace the image in the /data/ folder of your sketch and then re-export it from Processing. + mikkel
|
« Last Edit: Sep 24th, 2004, 11:10pm by mKoser » |
|
mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
|
|
|
SPRITEMUSKETEER
|
Re: background image
« Reply #4 on: Sep 27th, 2004, 9:31pm » |
|
thanks mikkel, that makes sense i will check it out.
|
|
|
|
|