animate light to dark

Mark Smith masmit at gmail.com
Wed Sep 14 21:15:56 EDT 2005


Also, try using repeat with n = 1 to 255 step 5 or whatever...


Mark

On 14 Sep 2005, at 20:02, TJ Frame wrote:

> Try using wait for X milliseconds (like perhaps 5 or so) instead of  
> the
> plain "Wait" statement.
>
>  On 9/14/05, Roger Guay <irog at mac.com> wrote:
>
>>
>> Michael,
>>
>> I discovered that if you put the following script into a button with
>> it's autoHilite off, you will get a very smooth transition albeit
>> slow. It takes about 5 seconds on my machine.
>>
>> on MouseUp
>> put "0" into clr
>> repeat 255
>> set the backgroundColor of me to clr,clr,clr
>> add 1 to clr
>> wait 1
>> end repeat
>> end mouseUp
>>
>> Can you work with this?
>>
>> Cheers, Roger
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list