Hacker News new | ask | show | jobs
by TimTheTinker 2549 days ago
Here's my try. Any idea why it didn’t result in the Sierpinsky triangle?

https://fractal.parts/test-a1d7

I can't seem to create more than 1 box of the same color.

1 comments

Thanks for giving the site a try! Simple answer: the shapes in your template are too small. Try scaling the squares to 1/2 the size of that larger, white square in the center. This can be seen in the template for https://fractal.parts/sierpinski.

Each shape that you add is a transformation from the base shape. The base shape is that large, white square that appears when you first head to fractal.parts/create. The transformations in your template are around 1/4 the size of the base shape. Your template also has a fair bit of whitespace. Together this produces a fractal that progressively disappears.

@TimTheTinker I've deployed a new version of the site that defaults shapes to half the size of the base. Hopefully that helps!