Forum Replies Created

Page 1048 of 1081
  • Dan Ebberts

    October 18, 2005 at 1:25 pm in reply to: expression with absolute values

    You have a couple of choices. The easiest would be to just enclose your result in Math.abs() to get the absolute value.

    Another way would be to see how far negative your wiggle expression goes and add a positive offset of the same magnitude to your result.

    Dan

  • Dan Ebberts

    October 18, 2005 at 1:20 pm in reply to: expression Q

    I think you just need something like this for the middle line of your expression:

    if (temp < 20) temp2 = 0 else temp2 = 100; Dan

  • Dan Ebberts

    October 18, 2005 at 1:20 pm in reply to: expression Q

    I think you just need something like this for the middle line of your expression:

    if (temp < 20) temp2 = 0 else temp2 = 100; Dan

  • Dan Ebberts

    October 17, 2005 at 6:55 pm in reply to: need help with expression 🙂

    If you want it to change as fast as possible try this:

    Math.round(random())*100;

    If you want to slow it down try this (and adjust freq as necessary):

    freq = 5;
    if (wiggle(freq,10) < value) 0 else 100 Dan

  • Dan Ebberts

    October 17, 2005 at 6:55 pm in reply to: need help with expression 🙂

    If you want it to change as fast as possible try this:

    Math.round(random())*100;

    If you want to slow it down try this (and adjust freq as necessary):

    freq = 5;
    if (wiggle(freq,10) < value) 0 else 100 Dan

  • Dan Ebberts

    October 14, 2005 at 8:30 pm in reply to: Number Count up

    A text expression like this should get you started:

    beginTime = 0;
    endTime = 2;
    startVal = 100;
    endVal = 1000;

    “$” + Math.round(linear(time,beginTime,endTime,startVal,endVal))

    Dan

  • Dan Ebberts

    October 14, 2005 at 8:30 pm in reply to: Number Count up

    A text expression like this should get you started:

    beginTime = 0;
    endTime = 2;
    startVal = 100;
    endVal = 1000;

    “$” + Math.round(linear(time,beginTime,endTime,startVal,endVal))

    Dan

  • Dan Ebberts

    October 14, 2005 at 6:39 pm in reply to: Letters one after one and CENTERED !

    Try setting the justification to centered (with the paragraph palette), use a monospaced font like Courier, add a tracking animator to get the characters roughly centered, then pickwhip the Tracking Amount to a slider to fine-tune it to the fractional value necessary to get them centered. Not sure if you can live with the monospaced font though.

    Dan

  • Dan Ebberts

    October 14, 2005 at 6:39 pm in reply to: Letters one after one and CENTERED !

    Try setting the justification to centered (with the paragraph palette), use a monospaced font like Courier, add a tracking animator to get the characters roughly centered, then pickwhip the Tracking Amount to a slider to fine-tune it to the fractional value necessary to get them centered. Not sure if you can live with the monospaced font though.

    Dan

  • Dan Ebberts

    October 14, 2005 at 6:22 pm in reply to: Expression for Digital 24 Hours clock

    You’d think I’d have learned by now to always try it before posting. This should work better:

    beginHr = 3;
    beginMin = 0;
    beginSec = 1;
    beginHun = 0;

    beginTime = (beginHr*60 + beginMin)*60 + beginSec + beginHun/100;

    function digits(myVal,myNumDigits){
    var s = myVal.toString();
    while (s.length < myNumDigits) s = '0' + s; return s; } currTime = beginTime - time; hr = digits(Math.floor(currTime/3600),2); min = digits(Math.floor((currTime%3600)/60),2); sec = digits(Math.floor(currTime)%60,2); hun = digits(Math.floor(currTime%1*100),2); hr + ":" + min + ":" + sec + "." + hun Dan

Page 1048 of 1081

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy