Bezier Curve by twobit(pooq)

a={}for i=1,8 do a[i]=io.read()end
for b=0,10 do
t=b/10 w=1-t s=" "for n=1,2 do
io.write(w^3*a[n]+3*w*t*(w*a[2+n]+t*a[4+n])+a[6+n]*t^3,s)s="\n"end
end

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

download

return to the top page