Baz has asked for the wisdom of the Perl Monks concerning the following question:
and I wish to scale the values in the above code by a factor of 4. This basically involves dividing all those values above by 4. But for arcs (A) there is an exception - A14.4,14.4 0 0 1 (etc) should be converted to A3.6,3.6 0 0 1, i.e. the 0 0 1 dont get scaled.<g style="fill:#ee3399;"> <path d="M155.9,124.8 A14.4,14.4 0 0 1 173.0,131.5 A18.0,18.0 0 0 1 16 +9.0,145.5 C169.6,149.2 171.9,152.2 175.9,155.5 A12.9,12.9 0 0 1 177.0 +,171.5 A10.0,10.0 0 0 1 163.0,176.3 A8.0,8.0 0 0 1 156.2,164.5 C156.4 +,160.5 154.8,157.8 151.9,155.5 A11.3,11.3 0 0 1 151.9,139.5 A16.5,16. +5 0 0 1 153.1,127.5 z" /> </g> <g style="fill:#FF00FF;"> <path d=" ...
I've no idea how to approach this, hope you can help,<g style="fill:#ee3399;"> <path d="M39.0,31.2 A3.6,3.6 0 0 1 43.3,32.9 A4.5,4.5 0 0 1 42.3,36.4 +C42.4,37.3 43.0,38.1 44.0,38.9 A3.2,3.2 0 0 1 44.3,42.9 A2.5,2.5 0 0 +1 40.8,44.1 A2.0,2.0 0 0 1 39.1,41.1 C39.1,40.2 38.7,39.5 38.0,38.9 A +2.8,2.8 0 0 1 38.0,34.9 A4.1,4.1 0 0 1 38.3,31.9 z" /> </g> <g style="fill:#FF00FF;"> <path d=" ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Scaling the values in a document
by BrowserUk (Patriarch) on Sep 01, 2002 at 02:34 UTC | |
by Baz (Friar) on Sep 01, 2002 at 02:48 UTC | |
|
Re: Scaling the values in a document
by theorbtwo (Prior) on Sep 01, 2002 at 01:52 UTC | |
by Baz (Friar) on Sep 01, 2002 at 01:58 UTC | |
by theorbtwo (Prior) on Sep 01, 2002 at 02:38 UTC |