problem running tutorials
in
Programming Questions
•
3 years ago
Hi, I just started using processing and begun from the tutorials. The code in "
Getting Started" runs fine. However, I have problems with "
Overview".
I have ubuntu 9.10, amd64 and installed processing 1.2.1 (unzip in my a dir under my home).
In " Overview" I can run the first example
I tried to find a minimal example that doens't work, so I took the final example from "Hello mouse" section.
I have ubuntu 9.10, amd64 and installed processing 1.2.1 (unzip in my a dir under my home).
In " Overview" I can run the first example
line(15, 25, 70, 90);
I tried to find a minimal example that doens't work, so I took the final example from "Hello mouse" section.
- void setup() {
// with X=480 (as well as smaller sizes) and Y size >- 125
// monitor flickrs, X crashes
// with this, everything is ok
size(480, 120);
// without this monitor flickrs, X crashes
smooth();
}
void draw() {
stroke(255);
line(150, 25, mouseX, mouseY);
}
void mousePressed() {
background(192, 64, 0);
}
- Without smooth(); X crashes
- with size(480, Y) where Y>=120 X also crashes
1