monica_b1998@lemmy.world to Programming@programming.dev · 8 hours agoAnimated particle constellations in 42 lines of JavaScriptslicker.meexternal-linkmessage-square4fedilinkarrow-up156
arrow-up156external-linkAnimated particle constellations in 42 lines of JavaScriptslicker.memonica_b1998@lemmy.world to Programming@programming.dev · 8 hours agomessage-square4fedilink
minus-squaremonica_b1998@lemmy.worldOPlinkfedilinkarrow-up7·edit-27 hours agoI 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;
minus-squaresping@lemmy.sdf.orglinkfedilinkEnglisharrow-up6·7 hours agoWell j = i + 1, and drop the equality test.
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!