FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 1302 : window placement off screen when the values for size() is larger than the display screen
Last modified: 2009-08-11 05:10
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
JohnnyAction
Assigned To:
fry
Attachment
Type
Created
Size
Actions
file to reproduce on xp home netbook and xp pro
text/plain
2009-08-10 22:29
1.07 KB
Description
: Opened: 2009-08-10 22:27
a better description can be found here:
http://processing.org/discourse/yabb2/YaBB.pl?num=1114677592
basically it was working fine for a little bit and rendering the top title
bar at the top of the screen. Then it started rendering it really high up
on the screen far above the top of the screen.
I can't reposition the window and I am specifically trying to create large
dynamic user interaction images so it is a problem for me that the window
appears off screen.
1.0.5
////////////////////////////////////////////////////////////////////////////////////////////
//the code that I am wrangling with before opening up linux.
int mode =0;
void setup(){
// size(500,500);
// size (3000,2000); //6mp
size(4000,3000 ); //12mp
colorMode(HSB, 3000,100,100);
background(#FAFAFA);
noStroke();
smooth();
}
void draw (){
float x= random (width);
float y= random(height);
fill(x,y,180, abs(round(255 -(mouseX))));
if ((mousePressed == true)&& mouseButton== LEFT) {
mode=1;
}
if ((mousePressed == true)&& mouseButton== RIGHT) {
mode=0;
}
if ((mousePressed == true)&& mouseButton== CENTER) {
mode=2;
}
if(mode ==0){
rect(x, y, second(), second());
}
if(mode ==1){
ellipse(x, y, second(), second());
}
if(mode ==2){
//triangle(x, y, round(y/2), second(), second(), second() );
triangle(x, y, mouseY, second(), second(), second() );
}
}
void keyTyped() {
if (int(key) ==32){ // if someone presses space
mode =-1;
}
if (int(key) ==115){ // if someone presses s
save("blipper"+day()+"."+month()+"."+year()+"."+hour()+"."+second()+"."+
millis()+".png");
}
println("key press: "+int(key) );
}
Additional Comment
#1 From JohnnyAction 2009-08-10 22:29
edit
]
file to reproduce on xp home netbook and xp pro
Additional Comment
#2 From fry 2009-08-11 05:10
This is out of our control. See the size() reference:
"The maximum width and height is limited by your operating system, and is
usually the width and height of your actual screen. On some machines it may
simply be the number of pixels on your current screen, meaning that a
screen that's 800x600 could support size(1600, 300), since it's the same
number of pixels. This varies widely so you'll have to try different
rendering modes and sizes until you get what you're looking for. If you
need something larger, use createGraphics to create a non-visible drawing
surface."