Segments
in
Programming Questions
•
1 year ago
Hello Guys,
I'm a beginner and I've to program a navigation or a platform for a course..
So my first question is, how can I separate the window in two areas?
It's like this:
// Grundfläche
boolean halten = false;
void setup() {
size (1100,650);
background(255);
stroke(255);
}
//Bereich zum Zeichnen.. wie eingrenzen?
void draw() {
rect(1,1,549,649);
stroke(0);
if(halten){
line(pmouseX,pmouseY,mouseX,mouseY);
}
}
void mousePressed(){
halten = true;
}
void mouseReleased(){
halten=false;
}
The right area is for drawing and the left for a platform, where you can click buttons and
find informations. So in the right you can test the informations from the left side.
But I don't know HOW =(
The code up there is just for representation and visualization of my idea.
Hope you can help me.
1