Skip to content

Commit

Permalink
Fix particle defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
dy0gu committed Dec 1, 2023
1 parent a30ea8e commit 3c0db5c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/components/particles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ function useMousePosition(): MousePosition {

export default function Particles({
className = "",
quantity = 30,
staticity = 50,
ease = 50,
quantity = 100,
staticity = 30,
ease = 40,
refresh = false,
}: ParticlesProps) {
const canvasRef = useRef<HTMLCanvasElement>(null);
Expand Down Expand Up @@ -207,14 +207,14 @@ export default function Particles({
const edge = [
circle.x + circle.translateX - circle.size, // distance from left edge
canvasSize.current.w -
circle.x -
circle.translateX -
circle.size, // distance from right edge
circle.x -
circle.translateX -
circle.size, // distance from right edge
circle.y + circle.translateY - circle.size, // distance from top edge
canvasSize.current.h -
circle.y -
circle.translateY -
circle.size, // distance from bottom edge
circle.y -
circle.translateY -
circle.size, // distance from bottom edge
];
const closestEdge = edge.reduce((a, b) => Math.min(a, b));
const remapClosestEdge = parseFloat(
Expand Down

0 comments on commit 3c0db5c

Please sign in to comment.