mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-11-12 16:03:50 +00:00
improved default values
This commit is contained in:
parent
e672e854c9
commit
8f28820452
@ -32,17 +32,18 @@
|
||||
|
||||
//.System variables
|
||||
const clock: Clock = {
|
||||
body: 50,
|
||||
body: 48,
|
||||
hands: {
|
||||
minute: 45,
|
||||
minute: 40,
|
||||
hour: 25
|
||||
},
|
||||
time: {
|
||||
minute: 0,
|
||||
hour: 0
|
||||
},
|
||||
speed: 4
|
||||
speed: 0.4
|
||||
};
|
||||
// Constant system values
|
||||
const TWO_PI = 2 * Math.PI;
|
||||
const HALF_PI = Math.PI / 2;
|
||||
|
||||
@ -93,7 +94,7 @@
|
||||
x1="50"
|
||||
y1="50"
|
||||
x2={clock.positions?.minute.x ?? 50}
|
||||
y2={clock.positions?.minute.y ?? 0}
|
||||
y2={clock.positions?.minute.y ?? 50}
|
||||
stroke-width="1"
|
||||
/>
|
||||
<!-- Clock hours hand -->
|
||||
@ -102,7 +103,7 @@
|
||||
x1="50"
|
||||
y1="50"
|
||||
x2={clock.positions?.hour.x ?? 50}
|
||||
y2={clock.positions?.hour.y ?? 0}
|
||||
y2={clock.positions?.hour.y ?? 50}
|
||||
stroke-width="2"
|
||||
/>
|
||||
</svg>
|
||||
|
Loading…
Reference in New Issue
Block a user