About Gravity — Interactive Particle Constellation
Gravity (Particle Constellation) is an interactive HTML5 Canvas 2D particle physics and geometric constellation experiment created by community contributor 孙猛.
Seventy luminous neon nodes drift across a dark slate cosmos with semi-transparent motion trails, rebounding smoothly off viewport boundaries.
Whenever particles pass within a 110-pixel proximity threshold, the engine dynamically renders distance-weighted translucent vector filaments that weave an evolving star constellation.
Moving a mouse cursor or sliding a finger across the screen creates a localized 140-pixel gravitational attraction field that gently pulls nearby nodes toward your trajectory.
Archived byte-for-byte in OneHTML's isolated sandbox at just 2.2 KB, it demonstrates how pure vanilla JavaScript and Canvas 2D can deliver tactile visual art with zero dependencies.
Gravity(星轨引力粒子星座)是由社区创作者「孙猛」投稿的 HTML5 Canvas 2D 引力粒子物理与几何星座交互实验。
70 颗色彩斑斓的发光星尘节点在深空画布中带着半透明残影自由漂浮,并在视口边缘平滑反弹。
当任意两颗粒子进入 110 像素临界距离内时,引擎会根据距离动态绘制透明度渐变的几何连线,编织出不断演化的星轨网络。
移动鼠标或手指滑过屏幕即可在轨迹周围激发 140 像素半径的局部引力场,柔顺地牵引星尘聚拢。
作品以仅 2.2 KB 的极简体积字节级原样归档于 OneHTML 隔离沙盒,诠释了纯原生 JavaScript 与 Canvas 2D 的极客视觉美学。
Key Highlights
- 2.2KB Pure Canvas 2D Particle Constellation Mesh
- Dynamic Proximity Vector Filaments & Motion Trails
- Smooth Mouse & Touch Gravitational Attraction Field
- 仅 2.2KB 纯原生 Canvas 2D 实现的动态星轨粒子星座
- 基于临界距离权重的动态几何连线与半透明运动残影
- 灵敏响应鼠标与触屏轨迹的局部引力场聚拢交互







Be the first to leave a little thought.