mirror of
https://github.com/processing/processing4.git
synced 2026-01-29 19:31:16 +01:00
minor change to thread example
This commit is contained in:
@@ -40,7 +40,6 @@ String allData;
|
||||
|
||||
void setup() {
|
||||
size(640, 360);
|
||||
smooth();
|
||||
// Spawn the thread!
|
||||
thread("loadData");
|
||||
}
|
||||
@@ -60,7 +59,7 @@ void draw() {
|
||||
// The size of the rectangle is mapped to the percentage completed
|
||||
float w = map(percent, 0, 1, 0, 300);
|
||||
rect(width/2-150, height/2, w, 10);
|
||||
textSize(14);
|
||||
textSize(16);
|
||||
textAlign(CENTER);
|
||||
fill(255);
|
||||
text("Loading", width/2, height/2+30);
|
||||
|
||||
Reference in New Issue
Block a user