Skip to content

Commit

Permalink
style: fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
keksiqc committed Oct 21, 2024
1 parent 97530cf commit aa7071b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/WaveBackground.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { p5i } from 'p5i'
import React, { useEffect, useMemo, useRef, useCallback } from 'react'
import React, { useCallback, useEffect, useMemo, useRef } from 'react'

/**
* Dots Background Effect
Expand Down Expand Up @@ -34,7 +34,8 @@ export function WaveBackground() {
for (let x = -SPACING / 2; x < w + SPACING; x += SPACING) {
for (let y = -SPACING / 2; y < h + offsetY + SPACING; y += SPACING) {
const id = `${x}-${y}`
if (existingPointsRef.current.has(id)) continue
if (existingPointsRef.current.has(id))
continue
existingPointsRef.current.add(id)
pointsRef.current.push({ x, y, opacity: Math.random() * 0.5 + 0.5 })
}
Expand Down Expand Up @@ -65,7 +66,7 @@ export function WaveBackground() {
let h = window.innerHeight
let offsetY = window.scrollY

const getForceOnPoint = (x: number, y: number, z: number) =>
const getForceOnPoint = (x: number, y: number, z: number) =>
(noise(x / SCALE, y / SCALE, z) - 0.5) * 2 * TWO_PI

function setup() {
Expand Down

0 comments on commit aa7071b

Please sign in to comment.