TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Single div Sierpinski triangle

142 点作者 spirit23超过 5 年前

5 条评论

_hardwaregeek超过 5 年前
Y&#x27;know, I suspect certain groups of modernist painters would have a field day with CSS. De Stijl for instance would love it. There is something so elegant and fun about using a medium that forces you to use only circles, rectangles and a few select curves under a few simple transformations.<p>I was visiting a 20th century art gallery and was joking with my friends about which painters could be implemented in CSS (Yves Klein ofc). Maybe I should go ahead and do it. There&#x27;s a few Mondrians that&#x27;d be fairly easy.
评论 #22280179 未加载
mcalus3超过 5 年前
I have made a funny Sierpinski carpet clicker recently, it&#x27;s only 30 lines of code in react and unfortunately not one div, but it&#x27;s still quite performant (safe to open, even on low-tier phones)<p><a href="https:&#x2F;&#x2F;recursivebuttons.mcalus.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;recursivebuttons.mcalus.dev&#x2F;</a><p>i love all kinds of fractal generative art :)
评论 #22281829 未加载
aidos超过 5 年前
Beautiful. I love that it looks like it’s all being built on its side but then he skews it back and it’s really just been there the whole time, leaning over so you don’t notice the structure.
wruza超过 5 年前
&gt;Chrome can render as many triangles as possible but Safari and Firefox don&#x27;t work well as the triangle is getting smaller.<p>Web is awesome, and browsers are the most advanced tech! But it seems to be hard to draw flipping triangles at fixed coordinates. Maybe that could be fixed with e.g. a special planar geometry library that makes precise calculations. Like 500x3.125%==15.625 and not 27.
评论 #22282300 未加载
forgotmypw超过 5 年前
This is awesome!