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_
   Topics & Contributions
   Responsive Form, Games
(Moderator: REAS)
   imagePuzzle - new BImage features in 0060
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: imagePuzzle - new BImage features in 0060  (Read 431 times)
mKoser

WWW Email
imagePuzzle - new BImage features in 0060
« on: Sep 23rd, 2003, 3:47am »

I just hacked a small example using some of the new BImage features found in P5_0060. To manipulate the image you click, drag'n'drop ... and to reset, press "r".
 
- - - - -
 
http://proce55ing.beyondthree.com?chapter=sketch&project=imagepuzzle
 
- - - - -
 
INSTRUCTIONS:  
click, drag and release.
"r" resets the image
 
an example of new BImage methods released with v. 0060
 
IMPLEMENTING NEW FEATURES:
background(BImage);
tint(int n, int nn);
BImage.get(int x, int y, int w, int h);
BImage.set(int x, int y, BImage);
 
I tried making it load an image from a webserver, and
found this working within Processing, but not i a browser
(it crashes!) ---> any suggestions are welcome
 
- - - - -
 
+ mikkel
« Last Edit: Sep 23rd, 2003, 4:45pm by mKoser »  

mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
REAS


WWW
Re: imagePuzzle - new BImage features in 0060
« Reply #1 on: Sep 23rd, 2003, 6:08pm »

yes, you can't load images from "other" servers while in a browser. it's a part of java applet security.
 
it's great to see the new API in use. did you make a redesign for beyondthree?
 
+ casey
 
 
mKoser

WWW Email
Re: imagePuzzle - new BImage features in 0060
« Reply #2 on: Sep 23rd, 2003, 6:57pm »

Quote:
you can't load images from "other" servers while in a browser

ahh, that's why it wasn't working on my local-server!
 
UPDATE
I have made a small edit to the example above. It now loads a random photo (from my website) in setup(). By pressing "w" you can load a new photo, everytime this is done, a copy of the loaded photo is taken to enable the reset-function (pressing "r") to be up-to-date.
 
same link as before!
 
Quote:
did you make a redesign for beyondthree?

No not quite (but thanks for noticing).  
 
The main domain (www.beyondthree.com) will keep on being my portfolio site. The new subdomain (proce55ing.beyondthree.com) will be my online sketchbook - the more developed sketches from here will eventually end up on the main-domain.
 
+ mikkel
 

mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
Pages: 1 

« Previous topic | Next topic »