/*
 *@name Functions
 *@description The drawTarget() function makes it easy to draw many distinct 
 *targets. Each call to drawTarget() specifies the position, size, and number of
 *rings for each target.
*/

function setup() {
  createCanvas(720, 400);
  background(51);
  noStroke();
  noLoop();
}

function draw() {
  drawTarget(width*0.25, height*0.4, 200, 4);
  drawTarget(width*0.5, height*0.5, 300, 10);
  drawTarget(width*0.75, height*0.3, 120, 6);
}

function drawTarget(xloc, yloc, size, num) {
  grayvalues = 255/num;
  steps = size/num;
  for (i = 0; i < num; i++) {
    fill(i*grayvalues);
    ellipse(xloc, yloc, size - i*steps, size - i*steps);
  }
}
@@ -500,16 +500,20 @@
 um) %7B%0A  
+var 
 grayvalu
@@ -528,16 +528,20 @@
 /num;%0A  
+var 
 steps = 
@@ -557,16 +557,20 @@
 %0A  for (
+var 
 i = 0; i
@@ -670,8 +670,9 @@
 );%0A  %7D%0A%7D
+%0A

Update 06_Functions.js