swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] swfc gradient example


From: Matthias Kramm
Subject: Re: [Swftools-common] swfc gradient example
Date: Sat, 23 Oct 2004 18:25:56 +0200
User-agent: Mutt/1.5.6i

On Sat, Oct 23, 2004 at 08:17:15AM -0400, Chris Flowers wrote:
> Hey Matthias,
> 
> Could you please post an example of the swfc .gradient command?

Sure:

# gradients.sc
.flash name="gradients.swf"

    .outline star:
        moveTo 521,640 
        cubicTo 502,678 370,546 328,554 
        cubicTo 270,566 152,731 93,722 
        cubicTo 51,716 147,549 127,512 
        cubicTo 98,460 -107,400 -117,341 
        cubicTo -124,299 63,339 93,308 
        cubicTo 133,265 127,50 180,23 
        cubicTo 218,3 238,195 276,213 
        cubicTo 330,238 532,166 575,208 
        cubicTo 605,238 429,316 424,358 
        cubicTo 416,417 547,587 521,640 
    .end

    .gradient rainbow:
        0% blue
        25% green
        50% yellow
        75% orange
        100% red
    .end
    
    .gradient fire radial:
        0% white
        50% yellow
        100% red
    .end
    
    .gradient horizon:
        0% cyan
        49% blue
        50% green
        100% peru
    .end

    .gradient transparent:
        0% #ff000000
        100% #ff0000ff
    .end

    .box scenery fill=horizon width=200 height=200
    .box bar fill=transparent width=240 height=20
    .filled star1 outline=star fill=rainbow line=1
    .filled star2 outline=star fill=fire    line=1
    
    .put scenery rotate=90% 
    .put star1 scale=10% x=-70
    .put star2 scale=10% x=-180 y=110
    .put bar x=-180 y=10 rotate=45
.end

I'll also add that to the swfc manual soon.

Greetings

Matthias








reply via email to

[Prev in Thread] Current Thread [Next in Thread]