Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
monica_b1998@lemmy.world to Programming@programming.dev · 1 day ago

Animated particle constellations in 42 lines of JavaScript

slicker.me

external-link
message-square
8
fedilink
  • cross-posted to:
  • programming@programming.dev
85
external-link

Animated particle constellations in 42 lines of JavaScript

slicker.me

monica_b1998@lemmy.world to Programming@programming.dev · 1 day ago
message-square
8
fedilink
  • cross-posted to:
  • programming@programming.dev
Animated particle constellations
slicker.me
external-link
  • monica_b1998@lemmy.worldOP
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    1 day 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
      8
      ·
      1 day ago

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

      • monica_b1998@lemmy.worldOP
        link
        fedilink
        arrow-up
        7
        ·
        1 day ago

        done, thanks a bunch!

        • chisel@piefed.social
          link
          fedilink
          English
          arrow-up
          2
          ·
          6 hours ago

          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.

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

            Glad to hear you enjoyed it!

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.

  • 242 users / day
  • 1.49K users / week
  • 3.06K users / month
  • 8.03K users / 6 months
  • 1 local subscriber
  • 23.3K subscribers
  • 1.27K Posts
  • 15K 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