I made this carpet in Desmos
I made this carpet in Desmos
I made this carpet in Desmos
How do you figure out the right-hand sides (0, 0.2, 1, 1.9)? Just guess random numbers and see what happens, or is there some heuristic for starting the guess?
0 is the border (here in red), 2 is the center of the square, the bigger the parameter, the closer you get towards the middle. Try out a few and see what looks good
(you can also do -2 to 0 to fill in the other half of squares that are currently blank)