this post was submitted on 04 Nov 2025
86 points (95.7% liked)
Programming
23442 readers
52 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I think it's drawing some lines twice, but I didn't think it's worth adding more lines to prevent it. Suggestions, anyone? Edit: I updated line 18 to let j = i + 1;
Well
j = i + 1, and drop the equality test.done, thanks a bunch!
Nice! This is a fun demo btw, makes me want to play around with canvas. I've never really come across a need for it besides things like hacky camera implementations.
Glad to hear you enjoyed it!