图像作为基于 javascript 的粒子网络效果的节点?

Images as nodes on a javascript based particle network effect?

我正在尝试创建一个基于 javascript 的粒子网络,将我自己的 20 个圆形图像作为其 20 个不同的节点。

我已经尝试使用各种可用的库并在此过程中修改它们,但还没有成功 - http://vincentgarreau.com/particles.js/ 这个库是我能找到的最接近定制我的解决方案的库。

任何指点肯定会有帮助。

谢谢!

请参阅下面为我的实施编辑的 particle.js 文件。

    particlesJS('particles-js',
    {
     "particles": {
     "number": {
      "value": 80,
      "density": {
        "enable": true,
        "value_area": 800
      }
    },
    "color": {
      "value": "#90a3ad"
    },
    "shape": {
      "type": ["image", "image2", "image3", "image4", "image5", "image6", "image7", "image8", "image9", "image10", "image11", "image12"],
      "stroke": {
        "width": 7,
        "color": "#094d8d"
      },
      "polygon": {
        "nb_sides": 5
      },
      "image": {
        "src": "./img/4.png",
        "width": 270,
        "height": 270
      }
    },
    "size": {
      "value": 30,
      "random": true,
      "anim": {
        "enable": false,
        "speed": 40,
        "size_min": 25,
        "sync": true
      }
    },
    "line_linked": {
      "enable": true,
      "distance": 170,
      "color": "#90a3ad",
      "width": 3
    },
    "move": {
      "enable": true,
      "speed": 4.810236182596568,
      "direction": "none",
      "random": true,
      "straight": false,
      "out_mode": "bounce",
      "bounce": false,
      "attract": {
        "enable": true,
        "rotateX": 3768.0183430339785,
        "rotateY": 3768.0183430339785
      }
    }
  },
  "interactivity": {
    "detect_on": "canvas",
    "events": {
      "onhover": {
        "enable": false,
        "mode": "repulse"
      },
      "onclick": {
        "enable": false,
        "mode": "push"
      },
      "resize": true
    },
    "modes": {
      "grab": {
        "distance": 400,
        "line_linked": {
          "opacity": 1
        }
      },
      "bubble": {
        "distance": 400,
        "size": 40,
        "duration": 2,
        "opacity": 8,
        "speed": 3
      },
      "repulse": {
        "distance": 200,
        "duration": 0.4
      },
      "push": {
        "particles_nb": 4
      },
      "remove": {
        "particles_nb": 2
      }
    }
  }
  }
);