git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added xpdf 'splash' layer
[swftools.git]
/
doc
/
fileformat.sc
diff --git
a/doc/fileformat.sc
b/doc/fileformat.sc
index
e0a7a14
..
075538f
100644
(file)
--- a/
doc/fileformat.sc
+++ b/
doc/fileformat.sc
@@
-62,6
+62,30
@@
100% #ffffff
.end
100% #ffffff
.end
+# with a hard edge:
+
+.gradient mygradient:
+ 0% red
+ 50% green
+ 50% red
+ 75% aquamarine
+ 100% #ffffff
+.end
+
+# with alpha:
+
+.gradient mygradient:
+ 0% #00000000
+ 50% #0000ff40
+ 75% #0000ff80
+ 100% #0000ffc0
+.end
+
+# define a texture from a gradient:
+# ---------------------------------
+
+.texture grad2=mygradient x=0 y=0 width=125 height=200 rotate=45
+
# Create simple objects:
# ----------------------
# Create simple objects:
# ----------------------
@@
-69,9
+93,10
@@
.box mybox2 width=100 height=50 color=black #same as above
.box mybox3 width=100 height=50 color=black fill #filled black rectangle
.box mybox4 width=100 height=50 color=red line=2 fill=blue #blue rectangle with red edges
.box mybox2 width=100 height=50 color=black #same as above
.box mybox3 width=100 height=50 color=black fill #filled black rectangle
.box mybox4 width=100 height=50 color=red line=2 fill=blue #blue rectangle with red edges
-.box mybox5 width=100 height=50 color=red line=2 fill=background #part the background image, with red edges
+.box mybox5 width=100 height=50 color=red line=2 fill=background #filled with image "background", with red edges
.circle mycircle1 r=50 color=#aa33ff fill=mygradient # filled with gradient (defined above)
.circle mycircle1 r=50 color=#aa33ff fill=mygradient # filled with gradient (defined above)
+.circle mycircle1 r=50 color=#aa33ff fill=grad2 # filled with gradient texture
# Sounds:
# -------
# Sounds:
# -------
@@
-118,7
+143,13
@@
# morphing
# --------
# morphing
# --------
-.morphshape morphthing start="start.fig" end="end.fig" #TODO
+.outline shape1:
+ #define shape 1
+.end
+.outline shape2:
+ #define shape 2
+.end
+.morphshape morphthing start=shape1 end=shape2
.frame 250
.put morphthing ratio=0%
.frame 270
.frame 250
.put morphthing ratio=0%
.frame 270
@@
-240,14
+271,14
@@
.png stoplogo "Stop.png" #TODO
.button playbutton
.png stoplogo "Stop.png" #TODO
.button playbutton
- .put play as=shape
- .put play as=area
- .put play_pressed as=pressed
- .put play_pressed as=hower
+ .show play as=idle
+ .show play as=area
+ .show play_pressed as=pressed
+ .show play_pressed as=hover
.end
.button playbutton2
.end
.button playbutton2
- .put play as=shape
+ .show play as=idle
.on_press inside
.on_release inside
.on_release outside
.on_press inside
.on_release inside
.on_release outside
@@
-261,8
+292,8
@@
.end
.button mybutton
.end
.button mybutton
- .put play as=shape
- .put obj1 x=300 y=400 scale=110% pivot=center
+ .show play as=idle
+ .show obj1 x=300 y=400 scale=110% pivot=center
as=pressed
.end
as=pressed
.end
@@
-275,17
+306,17
@@
# button which is blue, get's green when the mouse hovers over it, and
# white when it is pressed:
.button b1
# button which is blue, get's green when the mouse hovers over it, and
# white when it is pressed:
.button b1
- .put blueshape as=idle
- .put greenshape as=hower
- .put whiteshape as=press
+ .show blueshape as=idle
+ .show greenshape as=hower
+ .show whiteshape as=press
.end
# button where the button position is not identical to the active area:
.button b2
.end
# button where the button position is not identical to the active area:
.button b2
- .put activearea as=area
- .put blueshape as=idle
- .put greenshape as=hower
- .put whiteshape as=press
+ .show activearea as=area
+ .show blueshape as=idle
+ .show greenshape as=hower
+ .show whiteshape as=press
.end
# (if area is not set, it's the same as shape)
.end
# (if area is not set, it's the same as shape)
@@
-293,9
+324,9
@@
# the above put into use: pop up a window if the mouse cursor enters a certain
# area:
.button b3
# the above put into use: pop up a window if the mouse cursor enters a certain
# area:
.button b3
- .put activearea as=area
- .put emtpyshape as=idle
- .put window1 as=hower
+ .show activearea as=area
+ .show emtpyshape as=idle
+ .show window1 as=hower
.end
# fonts
.end
# fonts
@@
-336,7
+367,7
@@
.put o1=obj1 #TODO
.put o2=obj1 below=o1 x=50 #TODO
.put o1=obj1 #TODO
.put o2=obj1 below=o1 x=50 #TODO
-.frame #TODO
+.frame
.change o1 #TODO
.change o2 above=o1 x=50 #TODO
.change o1 #TODO
.change o2 above=o1 x=50 #TODO