emagiannu

[DynamicColorsBulding] colors

Mar 14th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. local function pow(n)
  2.  
  3.   if n == 0 then
  4.     return 1
  5.   elseif n == 1 then
  6.     return 2
  7.    
  8.   else
  9.    
  10.     return 2 * pow(n - 1)
  11.    
  12.   end
  13.  
  14. end
  15.  
  16.  
  17. --MAIN
  18. while true do
  19.   for i = 0, 16 do
  20.     rs.setBundledOutput("top", pow(i))
  21.     print(pow(i))
  22.     sleep(15)
  23.   end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment