Full source code (paste into an empty cart and run):
p={0,10,1,6,4,5,7,1,6,5,8,2,7,5,9,6,8,7,9,8,11,9,10,12,7,11,6,11,6,12,5,13,6,15}::_::cls(7)for i=1,30,4 do
for z=0,1,.01 do
for j=0,1 do
a=p[i+j]b=p[i+j+2]c=p[i+j+4]d=a+z*(b-a)e=b+z*(c-b)f=d+z*(e-d)
if(j<1)x=f else y=f
end
pset(x*9,y*9+sin(t()/2+i/50))end
end
flip()goto _
Pretty cool! Can you elaborate on what is going on here? How does that table p encode the shape of the dog? I'm guessing your a, b, c... sets are performing steps in drawing a Bézier curve but am not really sure.
A Bézier curve ( BEH-zee-ay) is a parametric curve used in computer graphics and related fields. The curve, which is related to the Bernstein polynomial, is named after Pierre Bézier, who used it in the 1960s for designing curves for the bodywork of Renault cars. Other uses include the design of computer fonts and animation. Bézier curves can be combined to form a Bézier spline, or generalized to higher dimensions to form Bézier surfaces.
Made for Inktober, day 6!
Full source code (paste into an empty cart and run):
Pretty cool! Can you elaborate on what is going on here? How does that table
pencode the shape of the dog? I'm guessing youra,b,c... sets are performing steps in drawing a Bézier curve but am not really sure.Hi guessing your
a,b,c... sets are performing steps in drawing a bézier curve but am not really sure., I'm dad.Bézier curve
A Bézier curve ( BEH-zee-ay) is a parametric curve used in computer graphics and related fields. The curve, which is related to the Bernstein polynomial, is named after Pierre Bézier, who used it in the 1960s for designing curves for the bodywork of Renault cars. Other uses include the design of computer fonts and animation. Bézier curves can be combined to form a Bézier spline, or generalized to higher dimensions to form Bézier surfaces.
^[ ^PM ^| ^Exclude ^me ^| ^Exclude ^from ^subreddit ^| ^FAQ ^/ ^Information ^| ^Source ^] ^Downvote ^to ^remove ^| ^v0.28