/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://codigodelaimagen.sketchpad.cc/sp/pad/view/ro.oArrmXCm8I5/rev.1
*
* authors:
* SARA GUTIERREZ
* Juan Antonio Ruz
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
void setup(){ // inicializamos con un frameRate bajo para ver la aplicación
background(255);
size (300,300);
frameRate(20);
}
void draw (){ // redibujamos usando el random en colores y transparencias
float colorXbase=random(240);
float colorYbase=random(240);
float colorZbase=random(240);
stroke(colorXbase,colorYbase,colorZbase,random(70,100));
strokeWeight(random(5));
float coordenadaXFinal=random(300);
float coordenadaYFinal=random(300);
line(coordenadaXFinal,coordenadaYFinal,mouseX, mouseY);
println(mouseX+"-----"+mouseY);
}