made a look up table for all possible values, will adjust later
This commit is contained in:
parent
2dbc436d6c
commit
31637dc5c2
39
index.html
39
index.html
@ -37,24 +37,25 @@
|
||||
{'3':{'450':.2445}},
|
||||
{'4':{'450':.242}},
|
||||
{'5':{'300':.239}},
|
||||
{'6':{'300':.239}},
|
||||
{'7':{'300':.239}},
|
||||
{'8':{'300':.239}},
|
||||
{'9':{'300':.239}},
|
||||
{'10':{'300':.239}},
|
||||
{'11':{'300':.239}},
|
||||
{'12':{'300':.239}},
|
||||
{'13':{'300':.239}},
|
||||
{'14':{'300':.239}},
|
||||
{'15':{'300':.239}},
|
||||
{'16':{'300':.239}},
|
||||
{'17':{'300':.239}},
|
||||
{'18':{'300':.239}},
|
||||
{'19':{'300':.239}},
|
||||
{'20':{'300':.239}},
|
||||
{'21':{'300':.239}},
|
||||
{'22':{'300':.239}},
|
||||
{'23':{'300':.239}}
|
||||
{'6':{'600':.2365}},
|
||||
{'7':{'5000':.234}},
|
||||
{'8':{'300':.2312}},
|
||||
{'9':{'600':.2287}},
|
||||
{'10':{'300':.226}},
|
||||
{'11':{'500':.2235}},
|
||||
|
||||
{'12':{'800':.2209}},
|
||||
{'13':{'550':.2183}},
|
||||
{'14':{'400':.2157}},
|
||||
{'15':{'300':.2131}},
|
||||
{'16':{'900':.2105}},
|
||||
{'17':{'500':.2079}},
|
||||
{'18':{'spin again':.2053}},
|
||||
{'19':{'900':.2027}},
|
||||
{'20':{'Bankrupt':.2000}},
|
||||
{'21':{'600':.1974}},
|
||||
{'22':{'400':.1947}},
|
||||
{'23':{'300':.1921}}
|
||||
];
|
||||
const canvas = document.getElementById('wheelCanvas');
|
||||
const ctx = canvas.getContext('2d');
|
||||
@ -126,7 +127,7 @@
|
||||
console.log(anglePerSegment);
|
||||
|
||||
let currentRotation = rotation; // Start from the current rotation
|
||||
spinSpeed = 0.239; // Initial speed
|
||||
spinSpeed = 0.1921; // Initial speed
|
||||
|
||||
function animate() {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user