Skip to content

Commit

Permalink
adjusting sparkline line weight
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacbowen committed Mar 4, 2024
1 parent 84cd0e0 commit 9c0713c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class SphereWithRods {
drawSparkline(): void {
this.sparklineContext.clearRect(0, 0, this.sparklineCanvas.width, this.sparklineCanvas.height);
this.sparklineContext.strokeStyle = 'white';
this.sparklineContext.lineWidth = Math.ceil(Math.min(window.innerWidth, window.innerHeight) / 1000) * 2;
this.sparklineContext.lineWidth = Math.ceil(Math.sqrt(Math.min(window.innerWidth, window.innerHeight)) / 1000) * 3;

this.sparklineContext.beginPath();
for (let x = 10; x <= this.sparklineCanvas.width - 10; x++) {
Expand Down

0 comments on commit 9c0713c

Please sign in to comment.