Advertisement
RaZgRiZ

strslide wip

Apr 25th, 2013
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. // Function which "slides" text with configurable speed and spaces before repetition
  2. // usage: (strslide "YOUR TEXT" <string length> <speed in ms/char> <spaces between loop>
  3. strslide = [
  4.     local tmp l
  5.     tmp = (concat $arg1 (loopconcat i $arg4 [result ""]))
  6.     l = (strlen $tmp)
  7.     result (substr (concatword $tmp $tmp) (mod (div (getmillis) $arg3) $l) (max (min $arg2 $l) 1))
  8. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement