restart: with(plots): with(plottools):
cathead := polygon([ [0,2], [0,7], [8,7], [8,2], [6,0],[2,0], [0,2] ],color=tan):
warning :=textplot ( [0,11, "WARNING",font = [TIMES, BOLD, 30]],color=red,align= above ) :
ear1 := polygon ([ [0,7], [0,10], [2,7] ],color=tan) :
ear2 := polygon ([ [8,7], [8,10], [6,7] ],color=tan) :
catface:= display ( [cathead, ear1, ear2]) :
mask := polygon( [ [8,6], [8,3], [0,3], [0,6], [8,6] ],color=black ):
display(mask) :
rawr :=display(mask,catface) :
eye1 := polygon([ [3,5], [2,5], [2,4], [3,4], [3,5] ],color=white) :
eye2 := polygon([ [6,5], [5,5], [5,4], [6,4], [6,5] ],color=white) :
cat1 := display (eye1, eye2, mask, catface) :
nose := polygon([ [4,1.5], [3.5,2], [4.5,2], [4,1.5] ],color=pink):
line1 := [ [4.5,2], [5.5,3] ] :
line2 := [ [4.5,2], [5.5,2] ]:
line3 := [ [4.5,2], [5.5,1] ]:
line4 := [ [3.5,2], [2.5,3] ]:
line5 := [ [3.5,2], [2.5,2] ]:
line6 := [ [3.5,2], [2.5,1] ]:
whiskers := plot ([line1, line2, line3, line4, line5, line6], color=black) :
cat2 :=display (nose, whiskers, cat1) :
mouth := plot ([ [4,1.5], [4,1] ],color=black,thickness=2):
cat3 :=display (mouth,cat2) :
lips1 := arc ( [4.25,1], .25, Pi..2*Pi,color=black):
lips2 := arc ( [3.75,1], .25, Pi..2*Pi,color=black):
fullcat :=display (lips1,lips2,cat3) :
fish :=display (nose,whiskers,mouth,lips1,lips2,rawr) :
eye3 :=plot ([ [2,4.5], [3,4.5]],color=white) :
eye4 :=plot ([ [5,4.5], [6,4.5] ],color=white) :
blink :=display (eye3,eye4,fish) :
blinking :=display ( [fullcat, blink,fullcat],insequence=true) :
mouth := pieslice ([4,1], .50, Pi..2*Pi, color=black) :
word1 :=textplot ([3.5,8, "Meow"],font = [TIMES, ROMAN, 20], align=right) :mouthface :=display (word1,mouth,cat3):
finishedcat :=display (blinking, mouthface,fullcat, insequence=true) :
head :=circle ([-4,9.5], 1.5,color=black):
body :=polygon ([ [-3.5,8], [-3.5,7], [-2,5.3], [-2.8,4], [-3.2,4.5], [-2.7,5.3], [-3.5,6.1], [-3.5,3],[-4.5,3], [-4.5,6.1], [-4.8,3], [-5.2,3], [-4.9,6.1], [-4.8,6.9], [-4.5,6.9], [-4.5,8], [-3.5,8] ], color=blue) :
together :=display (head,body):
eyes2 :=disk ([-3.5,9.5], .2, color=black):
eyes1 :=disk ([-4.5,9.5], .2, color=black):
bulletholes :=display (eyes1,eyes2, head):
hair :=arc ([-4,9.5], 1.5, 0..Pi, color=brown, thickness=35) :
bedhead :=display (hair,bulletholes):
nose :=circle ([-4,8.7], .1, color=tan) :
Voldemort :=display (nose,bedhead) :
closedmouth :=arc ([-4,8.5], .3, Pi..2*Pi, color=red) :
smile :=display (closedmouth,Voldemort) :
sitting :=display (smile, body) :
opened :=pieslice ([-4,8.5], .3, Pi..2*Pi, color=red) :
openmouth:=display (opened, Voldemort) :
hand :=disk ( [-3,4.2], .4, color=tan) :
handz :=display (hand, body, sitting) :
bowl :=arc ( [-4,3], 1, Pi..2*Pi, color=black, thickness=2) :
topp :=plot ([ [-5,3], [-3,3] ],color=black,thickness=2) :
bowl1 :=display (bowl,handz,topp) :
cerealz :=disk ( [-4.5,2.5], .1, color=green) :
abd :=disk ([-4.5,2.5], .04, color=white) :
cereal1 :=display (abd,cerealz) :
cerel :=disk ( [-4,2.5], .1, color=magenta) :
abf :=disk ([-4,2.5], .04, color=white) :
cereal2 :=display (abf,cerel) :
hola := disk ( [-4.3,2.3], .1, color=yellow) :
midle :=disk ( [-4.3,2.3], .04, color=white) :
cereal3 :=\134display (midle, hola) :
zxy := disk ([-3.5,2.4], .1, color=blue):
xyz := disk ([-3.5,2.4], .04,color=white) :
cereal4 := display (xyz,zxy) :
q := disk ( [-3.7,2.7], .1, color=cyan) :
z := disk ( [-3.7,2.7], .04, color=white) :
cereal5 := display (z,q) :
f := disk ( [-4.2,2.8], .1, color=red) :
g := disk ( [-4.2,2.8], .04, color=white) :
cereal6 :=display (g,f) :
y := disk ( [-3.8,2.2], .1, color=orange) :
u := disk ( [-3.8, 2.2], .04, color=white) :
cereal7 := (u,y) :
k :=disk ( [-3.3,2.8], .1,color=gold) :
j := disk ( [-3.3,2.8], .04,color=white) :
cereal8 := display (j,k) :
o := disk ( [-4.7,2.8], .1, color=violet) :
n := disk ( [-4.7,2.8], .04, color=white) :
cereal9 := display (n,o) :
sitting1 :=display (cereal9,cereal8,cereal7,cereal6,cereal5,cereal4,cereal3,cereal2,cereal1,bowl1) :
spoonhandle :=polygon ([ [-2.8,4], [-3.1,4], [-3.5,3.5], [-3.26,3.5], [-2.8,4]],color=gray) :
spon :=disk ( [-3.35,3.5], .25,color=gray) :
sitting2 :=display (spon,spoonhandle,sitting1) :
body1 :=polygon ([ [-3.5,8], [-3.5,7], [-3.5,3],[-4.5,3], [-4.5,6.1], [-4.8,3], [-5.2,3], [-4.9,6.1], [-4.8,6.9], [-4.5,6.9], [-4.5,8], [-3.5,8] ], color=blue) :
arm:=polygon([[-2.5,5.3], [-3.2,4.9], [-3.5,5.2], [-3.1,5.5],[-3.5,6.5], [-3.5,7], [-2.5,5.3]],color=blue) :
argh:=display(arm,body1,smile) :
meh:=display(cereal9,cereal8,cereal7,cereal6,cereal5,cereal4,cereal3,cereal2,cereal1,bowl,topp,argh) :
spoonhandle1 :=polygon ([ [-3.5,4.5], [-3.8,4.5], [-4.1,4.25], [-3.85,4.24], [-3.5,4.5]],color=gray) :
hand3:=disk( [-3.5,4.8], .4, color=tan) :
hand4:=display(hand3,meh) :
spon1:=disk( [-4,4.2], .25,color=gray) :
sitting3 :=display (spon1,spoonhandle1,hand4) :
arm1 :=polygon ([[-3.5,7], [-2.5,5.3], [-2.7,5], [-4,7.1], [-3.7,7.2], [-3,5.4]],color=blue) :
arms := display (spon1,spoonhandle1,hand3,arm) :
arms2:=rotate(translate(arms,0,-1),-Pi/4, [-3.5,6]) :
arms3 := rotate (arms2,-Pi/4,[-3.5,6]) :
arms4 := rotate (arms3,-Pi/4,[-3.5,6]) :
cerealkiller :=textplot ( [-5.5,5, "CEREAL KILLER",font= [TIMES, BOLD,20]],color=black) :
catburglar :=textplot ( [5.5,5, "CAT BURGLAR",font= [TIMES,BOLD,20]],color=black) :
firstframe :=display (warning,sitting2,fullcat) :
one :=display (cereal9,cereal8,cereal7,cereal6,cereal5,cereal4,cereal3,cereal2,cereal1,bowl,topp,smile,arms2,body1) :
two:=display (cereal9,cereal8,cereal7,cereal6,cereal5,cereal4,cereal3,cereal2,cereal1,bowl,topp,smile,arms3,body1) :
three:=display (cereal9,cereal8,cereal7,cereal6,cereal5,cereal4,cereal3,cereal2,cereal1,bowl,topp,openmouth,arms4,body1) :
eatingcereal :=display (sitting2,sitting3,one,two,three,two,one,sitting3,sitting2, insequence=true) :
ffscaled1 :=scale (firstframe,1/8,1/8) :
ffscaled2 := scale (firstframe,1/4,1/4) :
ffscaled3 := scale (firstframe,1/2,1/2) :
display (ffscaled1,ffscaled2,ffscaled3,firstframe,firstframe,warning,warning,warning,warning,finishedcat,catburglar,catburglar,catburglar,catburglar,warning,warning,warning,warning,eatingcereal,cerealkiller,cerealkiller,cerealkiller,cerealkiller,axes=none,scaling=constrained, insequence=true);
# FPS 2