Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name One Light
- @inputs On Up Down
- @outputs R1 G1 B1 Int
- #Is it on?
- if (On == 1) {
- if (Up == 1) {
- Int = Int + 100
- }
- if (Down == 1) {
- Int = Int - 100
- }
- interval(Int)
- R1 = random(255)
- G1 = random(255)
- B1 = random(255)
- }
- else {
- interval(0)
- Int = 0
- R1 = 0
- G1 = 0
- B1 = 0
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement