/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://dflab.sketchpad.cc/sp/pad/view/ro.FcIxiIilby7/rev.59
*
* authors:
* David Meireles
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
// as instruções que estiverem dentro desta função setup()
// correm uma vez quando o programa arranca
void setup() {
// tamanho da tela
size(300, 300);
// cor de fundo
background(255);
}
// as instruções que estiverem dentro desta função draw
// são executadas a cada novo frame
void draw() {
stroke(255,0,0);
fill(8,5,255);
ellipse(150, 0, mouseX, mouseY);
stroke(200,150,400);
line(150, 300, mouseX, mouseY);
}