Skip to content

Commit e389139

Browse files
committed
Improve comments
1 parent 7411d71 commit e389139

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

sass/_logo.scss

-7
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,12 @@ svg.logo {
1616
animation-duration: 1.5s;
1717

1818
g#starfield circle {
19-
// Reference for how to calculate a random x/y from some index goes to https://medium.com/hypersphere-codes/randomness-in-css-b55a0845c8dd
20-
// Specifically these numbers are derived from https://codepen.io/hypersphere/pen/poVwwxK
21-
// They seem to work well, and seem to be 'magic', so I left them.
22-
23-
// x
2419
@include primeRandom("x");
2520
cx: calc(var(--x) * var(--viewbox-width));
2621

27-
// y
2822
@include primeRandom("y");
2923
cy: calc(var(--y) * var(--viewbox-height));
3024

31-
// r
3225
@include primeRandom("r");
3326
r: calc(var(--r) * var(--star-max-radius));
3427
}

sass/_magic.scss

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
inherits: true
6464
}
6565

66+
// Reference for how to calculate a random val from some seed/index goes to https://medium.com/hypersphere-codes/randomness-in-css-b55a0845c8dd
6667
@mixin primeRandom($property) {
6768
--#{$property}-floating: calc(var(--random-seed) * var(--index) * #{random()} + var(--index) * var(--index) * #{random()} * var(--random-seed) * var(--random-seed));
6869
--#{$property}-floor: calc(var(--#{$property}-floating) - 0.5);

0 commit comments

Comments
 (0)