xxxxxxxxxx
/**
* shadow of circle
*
* @author aa_debdeb
* @date 2017/01/13
*/
void setup(){
size(640, 640);
noStroke();
background(255, 255, 250);
}
void draw(){
translate(width / 2, height / 2);
rotate(PI / 4);
for(int i = 0; i < 2; i++){
float angle = randomGaussian() * PI / 3;
float radius = abs(randomGaussian() * map(cos(angle), -1, 1, 5, 30)) + 100;
fill(0, 0, 60, 100);
ellipse(radius * cos(angle), radius * sin(angle), 0.3, 0.3);
}
}