miguelspastes

rainbow menu

Jan 30th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. function rainbowmenu()
  2.  
  3. local speed = 3
  4. local r = math.floor(math.sin(globals.RealTime() * speed) * 127 + 128)
  5. local g = math.floor(math.sin(globals.RealTime() * speed + 2) * 127 + 128)
  6. local b = math.floor(math.sin(globals.RealTime() * speed + 4) * 127 + 128)
  7. local a = 255
  8.  
  9. for k,v in pairs({ "clr_gui_window_logo1",
  10. "clr_gui_window_footer_text",
  11. "clr_gui_checkbox_on",
  12. "clr_gui_checkbox_on_hover",
  13. "clr_gui_tablist4",
  14. "clr_gui_tablist1",
  15. "clr_gui_slider_button",
  16. "clr_gui_window_header_tab2"}) do
  17.  
  18. gui.SetValue(v, r,g,b,a)
  19.  
  20. end
  21. end
  22.  
  23. callbacks.Register( "Draw", "owo", rainbowmenu);
Add Comment
Please, Sign In to add comment