//redacted//
//redacted//
void setup()
{
  size(800,500);
  //redacted//
  noStroke();
  makeToolbar(); //draws the tools at the left edge of the screen
}
void draw()
{
  if(mousePressed && !mouseIsOnToolbar())
  {
    paintAt(mouseX, mouseY);
  }
}
void mouseClicked()
{
  if( mouseIsOnButton1() )
  {
    currentColor = #ff0000;
  }
  if( mouseIsOnButton2() )
  {
    currentColor = #00ff00;
  }
  if( mouseIsOnButton3() )
  {
    currentColor = #0000ff;
  }
  if( mouseIsOnButton4() )
  {
    brushSize = brushSize + 3;
  }
  if( mouseIsOnButton5() )
  {
    brushSize = brushSize - 3;
    //redacted//
  }
}
void makeToolbar()
{
  fill(200);
  rect(0,0,100,500);
  
  //button 1
  fill(#ff0000, 100);
  ellipse(50,50,50,50);
  
  //button 2
  fill(#00ff00, 100);
  ellipse(50,150,50,50);
  
  //button 3
  //redacted//
  
  //button 4
  fill(255);
  ellipse(50,350,50,50);
  stroke(0);
  line(50,340,50,360);
  line(40,350,60,350);
  
  //button 5
  //redacted//
}

//...33 more lines redacted at this point//