----- Original Message ----- 
From: Andrew 
To: svg-developers@yahoogroups.com 
Sent: Wednesday, March 30, 2005 10:40 PM
Subject: about gradient filling in SVG


  
People, I think, there is one useful way to expand SVG specification a little. 
As I know, none of vector formats seriously supports gradient filling. SVG too. 
But, without gradient filling vector images, obtained with progs like Corel 
Trace or Adobe Streamline look like chip Japanese cartoon. I hope, that it is 
quite clear, that gradient filling support would make vector graphic more 
flexible and results of raster-to-vector conversation would more like to their 
raster prototypes. All what needs is slightly change record of an area to be 
painted. It could be done in such manner: 

Old variant with colored area

<path d="M790 380 l0 41 c-5.742 192.3 -179.9 359.3 -372 362 l-21 0 c-197.6 
4.443 -380.8 -168.5 -384 -367 l0 -29 c2.254 -194.1 174.1 -361.7 365 -370 " 
fill="#255" stroke= "red" stroke-width="5" />

New variant with gradient filling 

<path d="M790 380 l0 41 c-5.742 192.3 -179.9 359.3 -372 362 l-21 0 c-197.6 
4.443 -380.8 -168.5 -384 -367 l0 -29 c2.254 -194.1 174.1 -361.7 365 -370 " 
filling="v112 343 #ffccaa v343 298 #ff00dd" stroke= "red" stroke-width="5" />   

Here after word "filling" are two vertexes (each contents two coordinates, 
absolute or relative, and RGB triple). SVG viewer should extrapolate RGB 
triples to the whole area, enclosed with path. I've made some experiments with 
my SVG viewer and realized, that non-standard records are ignored. Therefore, 
expanded SVG files would be opened with all SVG viewers too. Look at Skoda.png. 
This small sample shows, how one can paint, using gradient filling without such 
restrictions like linear or radial gradient filling.

Andrew Matseevsky, Kamchatka.



[Non-text portions of this message have been removed]



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to