Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
turbocrime committed May 27, 2024
1 parent 0dc4c91 commit a62ccd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
7 changes: 1 addition & 6 deletions packages/ui/components/ui/logo/animated-penumbra.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { useEffect } from 'react';
import {
animateTheta,
extractViewBoxDimensions,
initializePlotsArr,
permutation,
} from './animation-logic';
import { animateTheta, extractViewBoxDimensions, initializePlotsArr } from './animation-logic';

// React component version of animated-penumbra.svg
export const AnimatedPenumbra = ({ className }: { className: string }) => {
Expand Down
6 changes: 3 additions & 3 deletions packages/ui/components/ui/logo/perlin-noise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const p = [...p1, ...p1] as const;
const fade = (t: number) => t * t * t * (t * (t * 6 - 15) + 10);
const lerp = (t: number, a: number, b: number) => a + t * (b - a);
const grad = (hash: number, x: number, y: number, z: number): number => {
let h = hash & 15;
let u = h < 8 ? x : y;
let v = h < 4 ? y : h === 12 || h === 14 ? x : z;
const h = hash & 15;
const u = h < 8 ? x : y;
const v = h < 4 ? y : h === 12 || h === 14 ? x : z;
return ((h & 1) === 0 ? u : -u) + ((h & 2) === 0 ? v : -v);
};

Expand Down

0 comments on commit a62ccd9

Please sign in to comment.