Modify Array Elements On The Fly
Posted: Fri May 09, 2014 2:31 pm
Hey guys, my brain has been squelching over this. Basically I want t know the best (quickest) way of taking a moving array of numbers and sliding their values.
So lets take an array of 5 values and every 5 seconds they change in value (from their current value to x). I want to slide between values. Make sense?
I know the slide prim is pretty good at this but i cant decide whether or not its fastest to slap in a ruby module and iterate over each value and the output it to slide and finally recombine into array.
Has anyone else done something similar or have a bit more knowledge on this topic?
So lets take an array of 5 values and every 5 seconds they change in value (from their current value to x). I want to slide between values. Make sense?
I know the slide prim is pretty good at this but i cant decide whether or not its fastest to slap in a ruby module and iterate over each value and the output it to slide and finally recombine into array.
Has anyone else done something similar or have a bit more knowledge on this topic?