src/module3/EarthquakeCityMap.java
private void addKey() 
	{	
		// Remember you can use Processing's graphics methods here
		PShape s;
		s = createShape();
		s.beginShape();
		s.fill(211,211,211);
		s.noStroke();
		s.vertex(10, 50);
		s.vertex(10, 350);
		s.vertex(170, 350);
		s.vertex(170, 50);
		s.endShape(CLOSE);
		shape(s, 10, 10);
		textSize(17);
		fill(10);
		text("Earthquake key", 50, 100); 
		fill(255, 0, 0);
		ellipse(50, 150, 15, 15);
		fill(10);
		textSize(12);
		text("5.0+ Magnitude", 70, 155);
		fill(YELLOW);
		ellipse(50, 200, 13, 13);
		fill(10);
		textSize(12);
		text("4.0+ Magnitude", 70, 205);
		fill(BLUE);
		ellipse(50, 250, 10, 10);
		fill(10);
		textSize(12);
		text("Below 4.0", 70, 255);
	
	}
// TODO: Implement this method to draw the key
Implement this method to draw the key
Implement this method to draw the key
private void addKey() 
	{	
		PShape s;
		s = createShape();
		s.beginShape();
		s.fill(211,211,211);
		s.noStroke();
		s.vertex(10, 50);
		s.vertex(10, 350);
		s.vertex(170, 350);
		s.vertex(170, 50);
		s.endShape(CLOSE);
		shape(s, 10, 10);
		textSize(17);
		fill(10);
		text("Earthquake key", 50, 100); 
		fill(255, 0, 0);
		ellipse(50, 150, 15, 15);
		fill(10);
		textSize(12);
		text("5.0+ Magnitude", 70, 155);
		fill(YELLOW);
		ellipse(50, 200, 13, 13);
		fill(10);
		textSize(12);
		text("4.0+ Magnitude", 70, 205);
		fill(BLUE);
		ellipse(50, 250, 10, 10);
		fill(10);
		textSize(12);
		text("Below 4.0", 70, 255);
	}
private void addKey ( ) { PShape s ; s = createShape ( ) ; s . beginShape ( ) ; s . fill ( 211 , 211 , 211 ) ; s . noStroke ( ) ; s . vertex ( 10 , 50 ) ; s . vertex ( 10 , 350 ) ; s . vertex ( 170 , 350 ) ; s . vertex ( 170 , 50 ) ; s . endShape ( CLOSE ) ; shape ( s , 10 , 10 ) ; textSize ( 17 ) ; fill ( 10 ) ; text ( "Earthquake key" , 50 , 100 ) ; fill ( 255 , 0 , 0 ) ; ellipse ( 50 , 150 , 15 , 15 ) ; fill ( 10 ) ; textSize ( 12 ) ; text ( "5.0+ Magnitude" , 70 , 155 ) ; fill ( YELLOW ) ; ellipse ( 50 , 200 , 13 , 13 ) ; fill ( 10 ) ; textSize ( 12 ) ; text ( "4.0+ Magnitude" , 70 , 205 ) ; fill ( BLUE ) ; ellipse ( 50 , 250 , 10 , 10 ) ; fill ( 10 ) ; textSize ( 12 ) ; text ( "Below 4.0" , 70 , 255 ) ; }
TODO: Implement this method to draw the key
TODO : Implement this method to draw the key
// Remember you can use Processing's graphics methods here