> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://dflab.sketchpad.cc/sp/pad/view/ro.h0MG60ffGbT/rev.303
 * 
 * authors: 
 *   
 *   Joana Louro

 * license (unless otherwise specified): 
 *   creative commons attribution-share alike 3.0 license.
 *   https://creativecommons.org/licenses/by-sa/3.0/ 
 */ 




    //valor de início da rotação - 0
    float r = 10;

void setup () {
    // tamanho da tela
    size(600, 600); 
 
    // cor de fundo
    background(234,128,128);
   
    rectMode (RIGHT)

}

void draw () {
    //definição do eixo da rotação - o valor default é o canto da origem dos eixos da imagem, assim é colocado no ponto do rato
    translate (mouseX,mouseY)
    //ordem para efectuar rotação do círculo
    rotate (r);
    //desenhar os círculos
   
   strokeWeight(2);
   stroke(167,196,75);
    ellipse(30,50,40,40);
    
    strokeWeight(3);
   stroke(75,173,196);
    ellipse(60,80,60,60);
    
    strokeWeight(4);
  stroke (245,200,104);
    ellipse(20,30,30,30);
    
    //proporção de rotação - 0.1º por frame
    r = r - 0.3;
}