Skip to content

粒子の形状

particles.shape は、パーティクルの描画方法を定義します。

ts
particles: {
  shape: {
    type: ["circle", "square"],
  },
}
  • type: 1 つの図形または図形のリスト。
  • 共通値: circlesquaretrianglepolygonimageemojitext

オプションあり

ts
particles: {
  shape: {
    type: "polygon",
    options: {
      polygon: {
        sides: 6,
      },
    },
  },
}

ソース参照