108



Random generator;

void setup(){
size(200,200);
background(0);
colorMode(RGB,255,255,255,100);
generator = new Random();
smooth();
frameRate(30);
}

void draw(){
fill(0,1);
rect(0,0,width,height);

float xloc = (float) generator.nextGaussian();

float sd = 25;
float mean= width/2;
xloc = (xloc*sd)+mean;

fill(255);
noStroke();
ellipse(xloc,height/2,8,8);
}

コメント