Question: I REALLY need help with this java code. I need to create the Sierpinski Carpet, using recursion. I need to use the methods fillPolygon(int[] xPoints,
I REALLY need help with this java code. I need to create the "Sierpinski Carpet", using recursion. I need to use the methods fillPolygon(int[] xPoints, int[] yPoint, numberOfPoints) and setColor(Color aColor). My class extends Applet, so use things like Graphics g and stuff instead of JPanel or whatever. I know there's a few examples of this online but I don't really understand them. When you answer, please comment the code so I know what lines of code are doing what, and please don't use fancy methods or a lot of methods that already to all of the work.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
