/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://a3.sketchpad.cc/sp/pad/view/ro.vUJlsexBBHG/rev.206
*
* authors:
* Drew Chappel
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
// Pressing Control-R will render this sketch.
PFont greg;
String s = "how many do you want?";
int amount = 0;
void setup() {
size(400,400);
textAlign(CENTER);
rectMode(CENTER);
bob = loadFont("Calibri-12.vlw");
}
void draw() {
amount++;
background(20,20,150);
textFont(bob);
fill(255);
fill(255,0,0);
textAlign(RIGHT);
textSize(2);
text("I want "+amount+" cookies, please.", 260, 200);
rect(250,250,50,50);
fill(50,255,50);
textSize(22);
text(s,80,20,100,40);
ellipse(80, 60, 30, 30);
}