This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.Color; | |
import sedgewick.StdDraw; | |
public class Triangles { | |
public static void triangle(double x, double y, double s, int n){ | |
// X and y are base coordinates, s is size, n is number of recursions | |