can you little explain the repeat 100000 section? and why loopindex/9999?
Develop games in your browser. Powerful, performant & highly capable.
I calculate a curve with 10000 points, for better precision. But only drawing the required number of them.
"Repeat 10000 times" loop runs from loopindex 0 to 9999, and cubic() expression requires a number from 0 to 1. That's why loopindex/9999
oh! very cleverrrrr
I got it. :)
Thanks
Now how do I calculate angle of dots?
angle(x1,y1,x2,y2)
I already tried this but not working. I used this right before when we set values for x1 and y1.
Are you trying to make a dashed line?
dropbox.com/s/m8wv5o16fkttuuu/cubic_curve_dash.c3p
yes, Thank you