New answers tagged

1

When I remove the Game.drawLines(), the circles don't have the border around them anymore. Well, let's do the obvious thing and look at that function then. static drawLines() { ctx.strokeStyle = "#000000"; for(let i = 0; i < 5; i++) { ctx.moveTo(0, i * (canvas.width / 50) + 50); ctx.lineTo(canvas.width, i * (canvas.width / ...


1

Start with an area of dimensions fib(i) by fib(i-1) units, then... Pick a starting "end" of the shape. Create a "room" square of size fib(i-1) Set the new working area to the original area minus the room. Decrease i and repeat. You can obviously reverse the process and start from the inside.


Top 50 recent answers are included