Skip to content

Commit

Permalink
make canvas size dynamic related to fractal size
Browse files Browse the repository at this point in the history
  • Loading branch information
blechdom committed Oct 31, 2023
1 parent c21a3ce commit c4a2ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ContourCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const ContourCanvas: React.FC<ContourCanvasProps> = ({matrixData}) => {
}
}, []);

return <canvas ref={canvasRef} width={1200} height={1200}></canvas>;
return <canvas ref={canvasRef} width={matrixData.length} height={matrixData.length}></canvas>;
};

export default ContourCanvas;

0 comments on commit c4a2ae7

Please sign in to comment.