function drawPerimeter() {
  g.clear();
  for (var i = 0; i < N; i++) {
    g.setColor(colours[i%colours.length]);
    var minAngle = (i/N)*radians;
    arc(perimMin,perimMax,minAngle,minAngle+arclen);
  }
}
// draw the arc segments around the perimeter
draw the arc segments around the perimeter
draw the arc segments around the perimeter
function drawPerimeter() {
  g.clear();
  for (var i = 0; i < N; i++) {
    g.setColor(colours[i%colours.length]);
    var minAngle = (i/N)*radians;
    arc(perimMin,perimMax,minAngle,minAngle+arclen);
  }
}
function drawPerimeter ( ) { g . clear ( ) ; for ( var i = 0 ; i < N ; i ++ ) { g . setColor ( colours [ i % colours . length ] ) ; var minAngle = ( i / N ) * radians ; arc ( perimMin , perimMax , minAngle , minAngle + arclen ) ; } }
draw the arc segments around the perimeter
draw the arc segments around the perimeter