Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] Re: (PR#10734) SVG flags
Home

[Freeciv-Dev] Re: (PR#10734) SVG flags

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#10734) SVG flags
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Tue, 26 Oct 2004 16:10:10 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10734 >

On Tue, 26 Oct 2004, Jason Short wrote:

> It should be possible to automatically add the line while rendering.
> However I don't really have an idea of how to do this.  I suppose since
> all of our current flags are rectangular, it could just be done with
> clever use of "convert".  But with non-rectangular flags something more
> clever would be needed.
>
> We could add the outline to the .svg image.  However the outline really
> shouldn't be scaled.  It should always be 1 pixel in width, right?  Can
> SVG do this?
>
> For shields this should be particularly easy.  Shields can be rendered
> automatically by rendering the flag SVG at a particular resolution and
> with a particular offset (specified in a $(flag)_shield.data file), then
> clipping by the shield mask.  Thus adding a new shield is as easy as
> fiddling with the 3 values in this data file.
>
> The only drawback in all this is that ImageMagick is not as Free as one
> would hope.

I suspect you can achieve all these ops with SVG.

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa






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