title: Creating An Abstract Calendar in P5JS
body: <p>how do i use nested for loops to create a calendar for 2021 where theres 12 columns of black circles, where the number of circles for each column corresponds to the number of days in that month.</p>
  <p>For example, the first column of circles will represent January and will have 31 circles. Each circle should be 10 pixels wide, and the canvas should be 140 X 330 which will allow a space of 10 pixels around the entire set of circles. i also need to indicate what day it is currently with a green circle and im not sure how to write a function for that either</p>
  <p>this is all i have:</p>
  <pre><code>    var numDays; 
  
  function setup() {
      createCanvas(140, 330);
      background(220);
  
  }
  
  function draw () { 
      fill(0);
      for (let m = 1; m &lt;= 12; m +=1 ) {
          //set the variable numDays here 
  
  
      for (let d = 1; d &lt;= numDays; d += 1) {
              //black circles
          }
      }
      fill (0, 255, 0);  
      //green circle
  
      noLoop();
  
  }
  </code></pre>