Coder Social home page Coder Social logo

lilgallon / particles.js Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 0.0 435 KB

✨ An easy way to make your website look sexy.

License: GNU General Public License v3.0

CSS 0.46% HTML 11.50% JavaScript 88.05%
javascript particles atoms animated js website animated-particles graph

particles.js's Introduction

header

Former student of:

  • 🇫🇷 Bordeaux Institute of Technology
  • 🇫🇷 University of Bordeaux
  • 🇺🇸 University of California, Santa Cruz.

I’ve got some experience in every domain of computer science . I am currently focusing on kotlin (couroutines and advanced features).


Experiment: Dynamic LED Strips

A C# software that connects any Bluetooth LED Strip to your computer using Bluetooth LE. The color and brightness then change according to your activity. Dynamic Led Strips. A bit like Philips Hue but for any BLE-compatible device.

My Minecraft Mods

total downloads

Developer of Dofus Mage Calculator


⚡ Latest Releases
🎁 Project 📝 Description
Daily Wallhaven Wallpaper 1.0.0 A script that changes your wallpaper everyday by picking one on Wallhaven
BettercolorsEngine 1.1.0 (published on maven central) The Engine of the Minecraft mod Bettercolors. Can be used for anything else that requires an automatically generated GUI
LatencyMod 0.1.0 A Minecraft mod that displays your latency
Aim Assistance Mod 1.3.0 A Minecraft mod that helps you aiming
Bettercolors 7.3.0 A Minecraft assistance mod
Quick Search Mod 1.0.0 A Minecraft mod to search for items
Horse Stats Mod 1.3.1 A Minecraft mod that shows the statistics of the ridden horse
Anvil Tooltip Mod 1.0.0 A Minecraft mod that shows the number of anvil uses as well as the repair cost of an item
Dynamic Led Strips 0.1.0 A program that takes control of cheap Led Strips controllers to make them look expensive
⚡ Recent Github Activity
  1. 🎉 Merged PR #10 in lilgallon/HorseStatsMod
  2. 🗣 Commented on #10 in lilgallon/HorseStatsMod
  3. 🗣 Commented on #10 in lilgallon/HorseStatsMod
  4. ❗️ Closed issue #93 in lilgallon/Bettercolors
  5. 🗣 Commented on #93 in lilgallon/Bettercolors
⚡ Github Stats

bio

lang

activity graph

⚡ EVEN MORE statistics (since September 2020)

Yeah, I like Windows


Where to find me

StackOverflow Website LinkedIn Twitter Discord

lilgallon StackOverflow

Also [email protected]

particles.js's People

Contributors

lilgallon avatar

Stargazers

 avatar  avatar  avatar

particles.js's Issues

Improve mouse interaction by adding an option

Often, the canvas in put under other containers, and so, the mouse interaction is ignored. To prevent this, we could provide an option to define the container id with which the mouse interaction will be set.

It needs an optimization

What is happening:

  • Iteration over all the particles to update them, O(n)
  • Iteration over all the particles, then for each particle, we iterate over all the particles except this one to draw springs, O(n*(n - 1))
  • Iteration over all the particles to draw them O(n)

We can clearly do better with a better code design.

Add min & max amount of particles

It is primordial because when the setting "dynamicAmount" is turned on, it is possible that a ton of particles are generated if the user increases the size of the window a lot.

cos / sin inverted in setSpeed and setDirection

fix:

    setSpeed(speed){
        const direction = this.getDirection();
--      this.vx = Math.cos(direction) * speed;
--      this.vy = Math.sin(direction) * speed;
++      this.vx = Math.sin(direction) * speed;
++      this.vy = Math.cos(direction) * speed;
    }

[...]
    setDirection(direction){
      const speed = this.getSpeed();
--      this.vx = Math.cos(direction) * speed;
--      this.vy = Math.sin(direction) * speed;
++      this.vx = Math.sin(direction) * speed;
++      this.vy = Math.cos(direction) * speed;
    }

Color for lines between particles

Hello my friend, in case of a white background it could be nice to let the user define the color of lines between particles in the settings. Thanks man good surf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.