Bezier Curve by pooq

a:=File standardInput readLines map(asNumber)
for(t,0,1,.1,w:=1-t;for(i,0,1,a do(write((at(i)*w**3+at(2+i)*w*w*t*3+at(4+i)*w*t*t*3+at(6+i)*t**3-.5)ceil,if(i>0,"
"," ")))))

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

download

return to the top page