Skip to content

Commit

Permalink
stylin
Browse files Browse the repository at this point in the history
  • Loading branch information
dkallen78 committed Dec 2, 2023
1 parent 858644c commit 6652044
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions ternary-clock/ternary-clock.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
height: 90vh;
max-height: 100vw;
width: 90vh;
border-radius: 1vh;
}

path {
Expand Down
13 changes: 10 additions & 3 deletions ternary-clock/ternary-clock.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function makeFace() {
if (j < 2) {
rad = rad + (radSeed / (3 ** (j + 1)));
} else {
rad = .75;
rad = (maxRad / box.width);
}

}
Expand Down Expand Up @@ -270,12 +270,19 @@ function backfillBand(band, time) {
}

let box = getSVGsize();

//
//Object to make representing the center point easier
// to understand in the code
let center = {
x: box.width * .5,
y: box.height * .5
}

//
//Calculates the maximum visible radius as the distance
// from the center to a corner
let maxRad = Math.sqrt(2 * ((box.width / 2) ** 2));
//
//The space between the cells of the clock face
let gap = .005;

let svgBox = document.getElementById("svgBox");
Expand Down

0 comments on commit 6652044

Please sign in to comment.