xxxxxxxxxx
25
function Cell(){
this.pos = createVector(random(width), random(height));
this.r = 20;
this.c = color(random(100,255), 0, random(100,255));
this.clicked = function(x,y){
var d = dist(this.pos.x, this.pos.y, x,y);
if d
}
this.mitosis = function(){
}
this.move = function(){
var vel = p5.Vector.random2D();
this.pos.add(vel);
}
this.show = function(){
noStroke();
fill(this.c);
circle(this.pos.x, this.pos.y, this.r);
}
}