How do you invert color?
3 posts • Page 1 of 1
How do you invert color?
I made a anti-gravity pad for my marble track , but I want to have the marble's color inverted, so I can figure out which are anti-gravity and which aren't. Thanks!
.
-
icrls984 - Posts: 80
- Joined: Thu Jun 13, 2013 6:33 am
Re: How do you invert color?
do do this simply type in the script of the pad:
"e.other.color = [1,1,1,2] - e.other.color"
the 2 is so the object wont get transparent.
"e.other.color = [1,1,1,2] - e.other.color"
the 2 is so the object wont get transparent.
- FRA32
- Posts: 229
- Joined: Wed Dec 03, 2014 9:51 pm
Re: How do you invert color?
I recommend you to use this code so transparent objects remain transparent.
- Code: Select all
e.other.color = [1 - e.other.color(0), 1 - e.other.color(1), 1 - e.other.color(2), e.other.color(3)]
-
T'wind_ - Posts: 86
- Joined: Wed Jul 08, 2015 5:33 pm
- Location: Western Europe
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 9 guests