X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=doc%2Fexamples%2Fpoints.sc;fp=doc%2Fexamples%2Fpoints.sc;h=5e4bdb5bf63f9abf3c47fd534f53940cee460e62;hb=d5a70ae785b504b8bb82379150b6e339240d5513;hp=0000000000000000000000000000000000000000;hpb=a984e3f36f2998ebf05446d4c4cf3574c03e210d;p=swftools.git diff --git a/doc/examples/points.sc b/doc/examples/points.sc new file mode 100644 index 0000000..5e4bdb5 --- /dev/null +++ b/doc/examples/points.sc @@ -0,0 +1,32 @@ +# points.sc +# +# Test points, pivots, pins + +.swf version=5 fps=20 name="points.swf" + +.box box 90 90 color=white fill=red line=5 +.point center 45 45 +.point corner1 0 0 +.point corner2 90 0 +.point corner3 90 90 +.point corner4 0 90 + +.put b1a=box x=90 y=90 pin=center +.put b1b=box x=90 y=90 pin=center alpha=50% +# OR: .put b1=box x=90 y=90 pin=(45,45) rotate=0 + +.put b2=box x=90 y=90 pin=corner1 alpha=75% blue=+128 red=0.2 +.put b3=box x=90 y=90 pin=corner2 alpha=75% blue=+128 red=0.2 +.put b4=box x=90 y=90 pin=corner3 alpha=75% blue=+128 red=0.2 +.put b5=box x=90 y=90 pin=corner4 alpha=75% blue=+128 red=0.2 + +.frame 100 +.change b1a rotate-=720 +.change b1b rotate+=720 +.change b2 rotate+=360 +.change b3 rotate-=360 +.change b4 rotate+=360 +.change b5 rotate-=360 + +.end +