Image:
Author: standardtoaster Group: Default Filesize: 17.6 kB Date added: 2009-10-15 Rating: 5.3 Downloads: 1047 Views: 1520 Comments: 2 Ratings: 2 Times favored: 0 Made with: Algodoo before v1.8.5 Tags:
|
Slowly fades from red to green.
Script:
(e)=>{
e.this.color = [e.this.color(0) - 0.01, e.this.color(1) + 0.01, e.this.color(2), e.this.color(3)]; e.this.color(0) <= 0 && e.this.color(1) >= 1 ? {e.this.color = [0, 1, e.this.color(2), e.this.color(3)]} : {} }
This takes the first value of the color and continually subtracts 0.01 from it until it gets to or below 0 and then it stops subtracting. This also takes the second value of the color and continually adds until it gets to or above 1. |
Last edited at 2009/10/15 18:16:13 by standardtoaster
Please log in to rate this scene
|