Skip to content

Commit

Permalink
Update Audio Visualizer colors
Browse files Browse the repository at this point in the history
  • Loading branch information
rooksFX committed Aug 26, 2024
1 parent c6211d0 commit 2aa16fb
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/components/AudioVisualizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,17 @@ export const AudioVisualizer = ({ frequencies }: Props) => {
index > 500
? "brightness-100 opacity-50"
: index > 255
? "brightness-150 opacity-75"
: "brightness-200 opacity-100"
? "brightness-150 opacity-75"
: "brightness-200 opacity-100"
}
${
frequency > 160
? "bg-purple-700"
: frequency > 80
? "bg-pink-700"
: "bg-teal-400"
: frequency > 0
? "bg-teal-400"
: "bg-zinc-700"
}
`}
style={{ height: frequency > 0 ? frequency : "5px" }}
Expand All @@ -54,18 +56,20 @@ export const AudioVisualizer = ({ frequencies }: Props) => {
rounded-md
transition-colors
${
index < 500
? "brightness-200 opacity-100"
: index < 255
index > 500
? "brightness-100 opacity-50"
: index > 255
? "brightness-150 opacity-75"
: "brightness-100 opacity-50"
: "brightness-200 opacity-100"
}
${
frequency > 160
? "bg-purple-700"
: frequency > 80
? "bg-pink-700"
: "bg-teal-400"
: frequency > 0
? "bg-teal-400"
: "bg-zinc-700"
}
`}
style={{ height: frequency > 0 ? frequency : "5px" }}
Expand Down

0 comments on commit 2aa16fb

Please sign in to comment.