 |
Author |
Topic: display the camera view in a particular area (Read 385 times) |
|
barikan

|
display the camera view in a particular area
« on: Feb 10th, 2004, 9:38pm » |
|
hi, i need to display the camera view in a particular area in the canvas. i've just tried to do something with copy() function, but there must be a better way. http://www.ucantekme.com/p5/th00_ed/applet/ do you have any ideas or examples. thanks. burak * sorry, it's working a bit hard because of the copy().
|
« Last Edit: Feb 10th, 2004, 9:56pm by barikan » |
|
|
|
|
Euskadi
|
Re: display the camera view in a particular area
« Reply #1 on: Mar 3rd, 2004, 4:09am » |
|
Barikan, Add these lines right before you end your loop and you will get a white frame around your camera space. Code: noStroke(); fill(255); rect(0,0,40,height); rect(width -40,0,40,height); rect(40,0,width-80,40); rect(40,height-40,width-80,40); stroke(0); noFill(); rect(40,40,width-80,height-80); |
| This should work as long as you don't bring your shapes out in front of the rectangles. If you want to have a control panel region on one edge of the screen, you can just do one rectangle. It's not very elegant, but it works. I have a couple apps where I do the same thing, and I keep all my controls in the box.
|
|
|
|
barikan

|
Re: display the camera view in a particular area
« Reply #2 on: Mar 5th, 2004, 6:36pm » |
|
thank you Euskadi, i'll post an example soon. burak
|
|
|
|
|