Skip to content

Instantly share code, notes, and snippets.

@sreich
Created January 22, 2015 02:40
Show Gist options
  • Save sreich/6b08d80c296427e544cb to your computer and use it in GitHub Desktop.
Save sreich/6b08d80c296427e544cb to your computer and use it in GitHub Desktop.
skeleton
torso l100 r90
@ #00F :rect w120 h100 t4 r-90 x50 f#FFF round-join
torso.head l0 r0 x100 #06F
@ #FC9 :ellipse w160 h140 t4 r-90 x55 f#FFF round-join
torso.head.eyes l0 x60 #06F r-90
@left[open] :circle d10 x-20 t0
@left[closed] :rect w10 h3 x-20 t0
@right[open] :circle d10 x30 t0
@right[closed] :rect w10 h3 x30 t0
torso.head.mouth r-90 x30 y5 l0
@ :path t3 round-cap
M 0,0
L 15,0
torso.arm-l l50 x100 y60 r160
@ :path t4 round-cap round-join
Q 50,0 50,0:arm-l.forearm
torso.arm-l.forearm l50 x50 y0 r0 i1.3
torso.arm-r l50 x100 y-60 r-190
@ :path t4 round-cap round-join
Q 50,0 50,0:arm-r.forearm
torso.arm-r.forearm l50 x90 y-80 r40
torso.leg-l l50 x0 y60 r170
@ :path t4 round-cap round-join
Q 50,0 50,0:leg-l.lower-leg
torso.leg-l.lower-leg l50 x50 y0 r10
torso.leg-r l50 x0 y-60 r-170
@ :path t4 round-cap round-join
Q 50,0 50,0:leg-r.lower-leg
torso.leg-r.lower-leg l50 x50 y0 r-10
anim "test" 20fps 0:5:li
head
r { :so> 0 :si-> 5 :so-> 0 :si-> -5 :so-> 0 }[2]
@head
c > #FC9 ----> #963 ----> #FC9
arm-r.forearm
r { :so> 0 :si-> 440 :so-> 10 :so-> 440 :so-> 0 }[2]
arm-l
r > 0 --> 20 --> 0 --> -20 --> 0
arm-l.forearm
r > 120 ----> 80 ----> 120
@eyes.left
@ > open ---> closed :2:-> open
@eyes.right
@ > open ---> closed :2:-> open
torso :sio
y > 0 --> -20 --> 0
leg-l :sio
r > 0 --> -30 --> 0
leg-l.lower-leg :sio
r > 0 --> 60 --> 0
leg-r :sio
r > 0 --> 30 --> 0
leg-r.lower-leg :sio
r > 0 --> -60 --> 0
anim "legs"
torso :sio
y > 0 --> -20 --> 0
leg-l :sio
r > 0 --> -30 --> 0
leg-l.lower-leg :sio
r > 0 --> 60 --> 0
leg-r :sio
r > 0 --> -30 --> 0
leg-r.lower-leg :sio
r > 0 --> -60 --> 0
arm-r
r > 35
arm-r.forearm
r > -30 ----> -20 ----> 30
arm-l
r > 30
arm-l.forearm
r > 50 ----> 30 ----> 50
i > 0.76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment