Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
domen.petric
domen.petric's Profile
1
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
run processing, save file and don't exit
[1 Reply]
10-May-2013 10:18 AM
Forum:
Programming Questions
hello everyone
i am working on some java application.
First it runs some GUI and then if button is pushed it runs processing
class Gui{
//creating some gui
picture = new TextManipulation();
picture.backgroundG = green;
picture.backgroundR = red;
picture.backgroundB = blue;
picture.picturePath = path.getText();
picture.text = text.getText();
picture.runSketch(new String[] { "--present", "textManipulation.TextManipulation" }, null);
return null;
}
}
public class TextManipulation extends PApplet {
static String picturePath = "";
static String text = "";
static float backgroundR = 0;
static float backgroundG = 0;
static float backgroundB = 0;
public void setup() {
}
public void draw() {
//do something with image
PImage file = get();
file.save(output);
exit();
}
}
When i call exit, program exits with GUI, but i don't want that. i want my gui still running so people can change some parameters and make another picture in processing.
Can anyone help me?
«Prev
Next »
Moderate user : domen.petric
Forum