MakeArmy Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
monica_b1998@lemmy.world to Programming@programming.dev · 2 months ago

Animated particle constellations in 42 lines of JavaScript

slicker.me

external-link
message-square
8
link
fedilink
91
external-link

Animated particle constellations in 42 lines of JavaScript

slicker.me

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

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

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

        done, thanks a bunch!

        • chisel@piefed.social
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 months 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
            ·
            2 months 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.

  • 240 users / day
  • 1.71K users / week
  • 3.26K users / month
  • 6.4K users / 6 months
  • 1 local subscriber
  • 24.1K subscribers
  • 545 Posts
  • 4.84K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • MaungaHikoi@lemmy.nz
  • UlrikHD@programming.dev
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org