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:
# ----------------------
.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=grad2 # filled with gradient texture
# Sounds:
# -------
# 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
.png stoplogo "Stop.png" #TODO
.button playbutton
- .show play as=shape
+ .show play as=idle
.show play as=area
.show play_pressed as=pressed
- .show play_pressed as=hower
+ .show play_pressed as=hover
.end
.button playbutton2
- .show play as=shape
+ .show play as=idle
.on_press inside
.on_release inside
.on_release outside
.end
.button mybutton
- .show play as=shape
+ .show play as=idle
.show obj1 x=300 y=400 scale=110% pivot=center
as=pressed
.end
.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