LibreTechni.ca
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
monica_b1998@lemmy.world to Programming@programming.dev · 8 hours ago

Animated particle constellations in 42 lines of JavaScript

slicker.me

external-link
message-square
4
fedilink
56
external-link

Animated particle constellations in 42 lines of JavaScript

slicker.me

monica_b1998@lemmy.world to Programming@programming.dev · 8 hours ago
message-square
4
fedilink
Animated particle constellations
slicker.me
external-link
alert-triangle
You must log in or register to comment.
  • chisel@piefed.social
    link
    fedilink
    English
    arrow-up
    7
    ·
    8 hours ago

    Am I crazy, or is that code drawing every line twice?

    • monica_b1998@lemmy.worldOP
      link
      fedilink
      arrow-up
      7
      ·
      edit-2
      7 hours ago

      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;

      • sping@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        6
        ·
        7 hours ago

        Well j = i + 1, and drop the equality test.

        • monica_b1998@lemmy.worldOP
          link
          fedilink
          arrow-up
          5
          ·
          7 hours ago

          done, thanks a bunch!

Programming@programming.dev

programming@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programming@programming.dev

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



Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 367 users / day
  • 1.46K users / week
  • 1.91K users / month
  • 1.92K users / 6 months
  • 1 local subscriber
  • 23.3K subscribers
  • 112 Posts
  • 711 Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • MaungaHikoi@lemmy.nz
  • UlrikHD@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org