Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. @name One Light
  2. @inputs On Up Down
  3. @outputs R1 G1 B1 Int
  4. #Is it on?
  5.  
  6. if (On == 1) {
  7.  
  8. if (Up == 1) {
  9. Int = Int + 100
  10. }
  11. if (Down == 1) {
  12. Int = Int - 100
  13. }
  14.  
  15. interval(Int)
  16.  
  17. R1 = random(255)
  18. G1 = random(255)
  19. B1 = random(255)
  20. }
  21. else {
  22. interval(0)
  23. Int = 0
  24.  
  25. R1 = 0
  26. G1 = 0
  27. B1 = 0
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement