mirror of
https://github.com/RainbowAsteroids/tweens
synced 2026-01-14 11:31:38 +00:00
No description
| docs | ||
| src | ||
| tests | ||
| README.md | ||
| tweens.nimble | ||
tweens
tweens is a basic tweening library for Nim.
You can install it just like any other nimble library. Get
choosenim,
and run nimble install tweens.
The documentation was written
here, so for now,
I'll just show an example
you can run by doing nimble test:
import strutils
import math
import os
import tweens
var t = createTween(tkEaseIn, 0, 180, 90)
while t.step != t.steps:
stdout.write("\x1b[2K\x1b[u" & "=".repeat(round(t.val).Natural))
stdout.flushFile()
sleep(50)
inc t
echo()