Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Create avatar animation.
- avatar : -skip ${1=32}
- N=$1 # Number of animation frames.
- # Create cube faces.
- -rm
- -l[]
- $HOME/work/img/avatar2.jpg
- W={w} H={h}
- -animate[0] "rotate","20,2,1,"{$W/2}","{$H/2}",0.5","380,2,1,"{$W/2}","{$H/2}",0.5",{$N+1}
- -rm[-1]
- -frame 5,5,0
- -a z
- -blur_z 0.8
- -endl
- -l[]
- $HOME/work/img/avatar2.jpg
- W={w} H={h}
- -animate[0] "rotate","30,2,1,"{$W/2}","{$H/2}",0.2","370,2,1,"{$W/2}","{$H/2}",1.5",$N
- -frame 5,5,0
- -a z
- -blur_z 1
- -endl
- -r[0,1] 100%,100%,{max(@{0,d},@{1,d})},3
- -rotate[-1] 90 -i[-2] 1 1
- --mirror[0] xy
- 1
- # Render animation
- -repeat $N
- angle={180*$>/$N}
- --l[0-5] -slices $> -image6cube3d[0-5] -endl
- -r3d[-1] 0,1,1,$angle -r3d[-1] 1,0.5,0,-20 -*3d[-1] 200
- -m3d 4 # -l3d -1000,100,-10000
- 400,400,1,3,-1 -object3d[-1] [-2],50%,50%,0,1,0 -rm[-2] -to_rgba[-1]
- -replace_color[-1] 0,0,-1,-1,-1,255,0,0,0,0
- -drop_shadow[-1] 10,10,8,1
- 100%,100%,1,3,255 -rv[-2,-1] -compose_alpha[-2,-1]
- -w[-1] -1,-1,0
- -done
- -k[-$N--1]
- -to_rgb -round -c 0,255
- -a z,0.5 -autocrop 0,0,0,0
- -s z -r 150,150,1,3,2
Advertisement
Add Comment
Please, Sign In to add comment