mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Update spring tests
This commit is contained in:
parent
ffef8e24ca
commit
5ab76a434e
3 changed files with 71 additions and 19 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue