From 31637dc5c2653aa5857ead3663b3c81c2a0c9ffa Mon Sep 17 00:00:00 2001 From: Meleeman01 Date: Sun, 1 Dec 2024 06:24:05 -0600 Subject: [PATCH] made a look up table for all possible values, will adjust later --- index.html | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/index.html b/index.html index 8e41a52..7674c73 100644 --- a/index.html +++ b/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() {