Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
tjeuvanbussel
tjeuvanbussel's Profile
2
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Drawing program
[2 Replies]
06-Mar-2011 06:18 AM
Forum:
Programming Questions
Hello,
I am trying to make a simple drawing program, and I want to click the button and then draw an ellipse, but in won't draw out of the button. Can you guys help me? Here is the code that I have made:
void setup() {
size (500, 500);
smooth();
background (255);
rect(50, 50, 50, 50);
}
void draw() {
if (mousePressed) {
if ((mouseX > 50)&&(mouseX < 100)&& (mouseY > 50)&&(mouseY < 100)) {
drawing();
loop();
}
}
}
void drawing() {
ellipse (mouseX, mouseY, 50, 50);
}
How do I make a textbox?
[1 Reply]
17-Feb-2011 08:35 AM
Forum:
Programming Questions
hello, I'm new here, but my question is: how do I make a textbox? I need it because I want to make a simple text editor :D
«Prev
Next »
Moderate user : tjeuvanbussel
Forum