Skip to content

Commit

Permalink
refactor: Reduce canvas and circle size to minimize wasted space
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Nov 27, 2024
1 parent 4fe4932 commit b323788
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hugo-site/layouts/shortcodes/small-world-routing.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</button>
</div>
<div style="display: flex; flex-direction: row; justify-content: center;">
<canvas id="networkCanvas2" width="600" height="600" style="max-width: 70%; height: auto;"></canvas>
<canvas id="networkCanvas2" width="400" height="400" style="max-width: 70%; height: auto;"></canvas>
</div>
</div>
<script src="/js/small-world-routing.js"></script>
2 changes: 1 addition & 1 deletion hugo-site/static/js/small-world-routing.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function initVisualization() {

// Parameters
const numPeers = 100;
const radius = 220;
const radius = 150;
const connectionProbability = (distance) => 1 / (distance + 1);

let peers = [];
Expand Down

0 comments on commit b323788

Please sign in to comment.