Hi
I’m trying to create a loop which generates a single series of sine results ranging from 0 to 1 based on 100 loops ( ie 0 ,0.011 ,0.1111…up to 1 in a single run)
The results I want start at 0 and increment in a series up to 1 and then stop. I suppose this would be one half of a sine wave
I have tried the following but it goes from 0 to 1 ,1 to 0 , 0 to 1 etc whereas I want a single straight run of 100 values from 0 to 1
I tried :
for(var i:Number=0;i<=100;i++){
trace((0.5*Math.sin(i)) + 0.5);
}
This does not work. Can someone correct it