I am new to Java and I am learning recursion. I found some interesting things like this link that implements recursion to make a Persian rug. I want to implement this code in java
float a = 1.0; int left = 0; int right = 340; int top = 0; int bot = 340; int r,g,b; color firstColor; color backC;
I use JFrame for my window and JPanel for drawing, but the code is really different from java, can someone give me advice on where to start? I know that the code uses colors, but what I'm trying to do is make the carpet only in black, so I can later implement some color.
Thanks for the tips.
source share