No description
Find a file
2021-03-15 14:57:57 -04:00
docs Added docs 2021-03-15 14:31:55 -04:00
src Added docs 2021-03-15 14:31:55 -04:00
tests Forgot to add a test 2021-03-15 14:57:57 -04:00
README.md Update README.md 2021-03-10 03:46:16 -05:00
tweens.nimble Added docs 2021-03-15 14:31:55 -04:00

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()