search for: do_gradient

Displaying 1 result from an estimated 1 matches for "do_gradient".

2007 Dec 03
0
12 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h libswfdec/swfdec_gradient_pattern.c libswfdec/swfdec_gradient_pattern.h libswfdec/swfdec_movie_as_drawing.c libswfdec/swfdec_pattern.c
...Fill.as b/test/image/gradient-beginGradientFill.as new file mode 100644 index 0000000..a30717e --- /dev/null +++ b/test/image/gradient-beginGradientFill.as @@ -0,0 +1,60 @@ +// makeswf -v 7 -s 200x150 -r 1 -o gradient-beginGradientFill.swf gradient-beginGradientFill.as + +x = 0; +y = 0; + +function do_gradient (type, colors, alphas, ratios) { + var matrix = { a:0, b:-80, d:80, e:0, g: x * 100 + 50, h: y * 100 + 50 }; + beginGradientFill (type, colors, alphas, ratios, matrix); + moveTo (x * 100 + 10, y * 100 + 10); + lineTo (x * 100 + 10, y * 100 + 90); + lineTo (x * 100 + 90, y * 100 + 90); + lineT...