Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Slow Down a Javascript Patch



Is there any supported way to slow down a Javascript patch? I know SetTimeout() is not supported. I have a an if/else for loop:

if (inputs[0] == '0') {
    for (i = 0; i <= 1; i=i+0.01) {
    outputs[0]=Math.round(i*100)/100;
    }

} else {
    for (i = 1; i >= 0; i=i-0.01) {
    outputs[0]=Math.round(i*100)/100;
    }
}

This feeds into the 'depth' paramter of a cube, but goes by way too fast to do any good.

Any ideas?

Surya Buchwald
aka Momo the monster
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.