Bezier Curve by twobit(Hendrik)

n="*l"a,b,c,d,e,f,g,h=io.read(n,n,n,n,n,n,n,n)for t=0,1,.1 do
x=1-t
print(("%.f %.f"):format(a*x^3+3*t*x*(x*c+e*t)+g*t^3,b*x^3+3*t*x*(x*d+f*t)+h*t^3))end

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page