Creating Periodicity in the Phyllotaxis formation

  c++, matlab, python, r

I am trying to time the appearance of each dot in the spiral formation. Any help will be appreciated(Phyllotaxis). Thanks

var  n = 0;
var c = 4;

function setup(){
  createCanvas(400, 400)
  angleMode(DEGREES);
  background(0);
}

function draw(){
  var a = n * 137.3;
  var r = c * sqrt(n);

  var x = r * cos(a) + width/2;
  var y = r * sin(a) + height/2;
  fill(755);
  noStroke();
  ellipse(x, y, 4, 4);
  n++;
}

Source: Windows Questions C++

LEAVE A COMMENT