Skip to content

Commit

Permalink
Fixed flickering-grid err
Browse files Browse the repository at this point in the history
Signed-off-by: Akash <[email protected]>
  • Loading branch information
SkySingh04 committed Aug 16, 2024
1 parent c5e1036 commit 18201fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/magicui/flickering-grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const FlickeringGrid: React.FC<FlickeringGridProps> = ({
if (!ctx) return "rgba(255, 0, 0,";
ctx.fillStyle = color;
ctx.fillRect(0, 0, 1, 1);
const [r, g, b] = ctx.getImageData(0, 0, 1, 1).data;
const [r, g, b] = Array.from(ctx.getImageData(0, 0, 1, 1).data);
return `rgba(${r}, ${g}, ${b},`;
};
return toRGBA(color);
Expand Down

0 comments on commit 18201fc

Please sign in to comment.