Re: Small Xr example
Vadim Plessky <[email protected]> Sun, 1 Dec 2002 17:55:05 +0300
| Newsgroups | gmane.comp.xfree86.render |
|---|---|
| Message-ID | <[email protected]> |
--Boundary-00=_JLi69GH1PXmER9f Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline On Sunday 01 December 2002 10:49 am, Keith Packard wrote: | Some people might find the following patch helpful for Owen's nice example | program. (He's apparantly using C++ compilers these days). | Is there any progress with gradients in Xr/Xc? Support for gradients is required even for rather simple (2K-3K) SVG drawings. See, for example, my Forward icon (attached), which is rendered quite well by librsvg-2.1.1 from GNOME CVS (ftp://ftp.gnome.org/ftp/mirror/gnome.org/sources/librsvg/2.1) As support for gradients (to some extent) is in librsvg2, can it be "backported" to Xr/Xc? Attached drawing is done in Sodipodi (not in Adobe Illustrator or CorelDRAW), so I hardly believe this example can be treated as a complex one or difficult to handle :-) | I would like an idea if the Xr API was in any way a hinderence in this | little activity. | | -keith | | *** xr-knockout-example.c.owen 2002-11-30 23:46:54.000000000 -0800 | --- xr-knockout-example.c 2002-11-30 23:46:27.000000000 -0800 [...] | _______________________________________________ | Render mailing list | [email protected] | http://XFree86.Org/mailman/listinfo/render -- Vadim Plessky SVG Icons * BlueSphere Icons 0.3.0 released http://svgicons.sourceforge.net My KDE page http://kde2.newmail.ru (English) KDE mini-Themes http://kde2.newmail.ru/themes/ --Boundary-00=_JLi69GH1PXmER9f Content-Type: image/svg+xml; name="forward-2.0.svg" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="forward-2.0.svg" <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [ <!ATTLIST svg xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink"> ]> <!-- Created with Sodipodi ("http://www.sodipodi.com/") --> <svg xml:space="preserve" width="128pt" height="128pt" viewBox="0 0 507.946 507.946" id="svg49" sodipodi:version="0.27" sodipodi:docname="/mnt/windows/Themes/Work/Blue-Sphere/forward-2.0.svg" sodipodi:docbase="/mnt/windows/Themes/Work/Blue-Sphere/" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs id="defs62"> <radialGradient id="aigrd1" cx="218.9404" cy="219.7715" r="150.7063" fx="218.9404" fy="219.7715" gradientUnits="userSpaceOnUse" style="stroke:#000000;stroke-opacity:0.986014;stroke-width:0.981612;"> <stop offset="0" style="stop-color:#73ffff;stroke:#000000;stroke-opacity:0.986014;stroke-width:0.981612;" id="stop53" /> <stop offset="0.2809" style="stop-color:#2EA6B9;stroke:#000000;stroke-opacity:0.986014;stroke-width:0.981612;" id="stop54" /> <stop offset="1" style="stop-color:#006b8b;stroke:#000000;stroke-opacity:0.986014;stroke-width:0.981612;" id="stop55" /> </radialGradient> </defs> <sodipodi:namedview id="base" /> <path style="font-size:12;stroke:none;stroke-width:0.979268;stroke-opacity:0.986014;fill:#a4c9ee;fill-opacity:0.7;" d="M134.757,263.776c0,66.739,54.298,121.04,121.039,121.04c66.739,0,121.039-54.301,121.039-121.04c0-66.741-54.3-121.039-121.039-121.039c-66.741,0-121.039,54.298-121.039,121.039z" id="path51" transform="matrix(1.89511,0,0,1.91236,-231.458,-247.971)" /> <path style="font-size:12;fill:url(#aigrd1);fill-rule:evenodd;stroke:#1c6671;stroke-width:7.73106;stroke-opacity:0.988235;" d="M356.643,263.366c0,57.027-46.23,103.257-103.256,103.257c-57.027,0-103.256-46.229-103.256-103.257c0-57.027,46.229-103.256,103.256-103.256 c57.025,0,103.256,46.229,103.256,103.256z" id="path56" transform="matrix(2.04451,0,0,2.04451,-264.353,-281.723)" /> <path style="font-size:12;opacity:1.0;fill:#ffffff;stroke:#1c6772;stroke-width:4.99274;stroke-opacity:0.988235;fill-opacity:0.7;" d="M305.753,281.376c0,0-18.858-18.856-27.854-27.851c7.943-7.944,21.152-21.153,21.152-21.153c1.913-1.913,2.929-4.471,2.929-7.073c0-1.289-0.249-2.588-0.762-3.825c-1.548-3.736-5.193-6.173-9.238-6.173 l-76.863,0c-5.523,0-10,4.477-10,10v76.867c0,4.045,2.437,7.691,6.173,9.239c3.737,1.548,8.039,0.691,10.898-2.169c0,0,13.208-13.211,21.152-21.155c8.996,8.996,27.852,27.854,27.852,27.854c1.875,1.876,4.419,2.93,7.071,2.93s5.195-1.054,7.071-2.929l20.42-20.42 c1.875-1.876,2.929-4.419,2.929-7.071s-1.054-5.196-2.93-7.071z" id="path59" transform="matrix(-1.38018,1.4295,-1.4295,-1.38018,998.477,266.547)" /> </svg> --Boundary-00=_JLi69GH1PXmER9f--