Update spring tests

This commit is contained in:
aaron 2023-08-26 14:49:46 +01:00
parent ffef8e24ca
commit 5ab76a434e
3 changed files with 71 additions and 19 deletions

View file

@ -13,10 +13,6 @@ local function step(): number
end
local function main()
local source = vide.source
local spring = vide.spring
local watch = vide.watch
local TERMINAL_HEIGHT = 73 --* REDUCE IF BAR DOES NOT FIT IN TERMINAL
local MIN_ALPHA = 0.3
local MAX_ALPHA = 0.7
@ -39,6 +35,10 @@ local function main()
else ""
end
local source = vide.source
local spring = vide.spring
local watch = vide.watch
local value = source(MAX)
local sprung = spring(value, 1, 0.3)