this post was submitted on 20 Jun 2025
12 points (83.3% liked)

Technology

71717 readers
3679 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 5 points 16 hours ago (1 children)

It's not pretty, but you can print one in a single line of python:

print(*["".join("  " if i & j else "MM" for j in range(64)) for i in range(64)], sep="\n")

[–] [email protected] 2 points 15 hours ago

oh, wow! that's so cool!

[–] msfroh 2 points 1 day ago (1 children)

I'm disappointed that none of them seem to have gone with the random convergence approach.

Set the three corners of an equilateral triangle. Pick a random starting point on the canvas. Every iteration, pick a random corner from the triangle and your next point is the midpoint between the current point and that corner. While the original point is almost guaranteed not to be a point in Sierpinski's triangle, each iteration cuts the distance between the new point and the nearest Sierpinski point in half.

If you start plotting points starting with (say) the 50th one, every pixel is "close enough" to a Sierpinski point that you see the triangle materialize out of nothing. The whole thing could be programmed in about 20 lines of QBasic on DOS 30 years ago.

[–] [email protected] 2 points 1 day ago* (last edited 1 day ago) (1 children)

random convergence

  • isn't it the fourth one (NinjaTech)?
[–] msfroh 3 points 1 day ago

Oh, maybe! I didn't understand how it chose the points, but it does look like the random convergence approach.

Nice, thanks!

[–] [email protected] 0 points 1 day ago* (last edited 1 day ago)

Here's a cool video about it

https://yewtu.be/watch?v=kbKtFN71Lfs

Edit:

Meant to reply to msfroh, oops