W3C home > Mailing lists > Public > www-svg@w3.org > January 2001

Re: radius in pixels, I don't get it...

From: Stephane Conversy <conversy@emn.fr>
Date: Tue, 16 Jan 2001 15:06:04 +0100
Message-ID: <3A64554C.30799373@emn.fr>
To: www-svg@w3.org, svg-testsuite-comments@w3.org
in fact, for the last circle (the green one), the test file reads:

<!-- Draw marker using percentages. This should yield a value of 3.536
-->
<!-- in user space. 10px = 2.222% of 450px
-->
 <circle cx="20" cy="0" r="2.222%" style="fill:green" />

shouldn't it be 10px of hypot(450,450) instead of the width (450) ?
ie instead of 10/450, we should have 10/hypot(450,450) = 10/636 = 1,572%




--
stephane conversy
ecole des mines de nantes
Received on Tuesday, 16 January 2001 09:05:58 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:19 GMT