Skip to content

Commit

Permalink
Fine tunes layout quality grid display
Browse files Browse the repository at this point in the history
  • Loading branch information
jacomyal committed Jun 14, 2024
1 parent fed1a79 commit 7998901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/graphPage/controllers/GridController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const GridController: FC<{ size: number; opacity: number; color: string }
const newSlowedSize = size * T + slowedSizeRef.current * (1 - T);
const newSlowedOpacity = opacity * T + slowedOpacityRef.current * (1 - T);

if (Math.abs((newSlowedSize - size) / size) >= 0.05) {
if (Math.abs((newSlowedSize - size) / size) >= 0.01) {
slowedSizeRef.current = newSlowedSize;
slowedOpacityRef.current = newSlowedOpacity;
return true;
Expand Down Expand Up @@ -68,7 +68,7 @@ export const GridController: FC<{ size: number; opacity: number; color: string }

ctx.globalAlpha = finalOpacity;
ctx.strokeStyle = color;
ctx.lineWidth = 1;
ctx.lineWidth = 0.5;

for (let x = gridSize / 2; x <= stageSize; x += gridSize) {
for (let r = -1; r <= 1; r += 2) {
Expand Down

0 comments on commit 7998901

Please sign in to comment.