OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

oiic-formation-discuss message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: RE: [oiic-formation-discuss] Classic test case

Dave, and all:

 In this case, I would suggest that OpenOffice is incorrectly implemented.  Why?  Well, when I think of a "radial gradient", I think of a gradient spreading out from a central point to a set radius around that point.  I can, however, see how the OpenOffice implementation got that way.  In OpenOffice, they chose to start by coloring the border first, then moving towards the center.  This is a graphics programmer's typical approach.  If you try using the Microsoft Office equivalent program (if there is one), you may find that it works the same way as OpenOffice (I know StarOffice does, but we all know the reason for that one).  For consistency's sake, why not change the ambiguously defined "start-color" and "end-color" to "inner-color" and "outer-color" for radial drawing?  Alternatively, declare that rendering a radial gradient must appear to take place from the center outward.  That allows the implementer to decide whether to implement as a graphics program or as a mathematically-defined program.  (In the case of the former, although the start and end colors would be red and yellow respectively, the drawing would still take place with the yellow being used first and the red being used second, but it would appear that red was used first in accordance with the mathematical thinking applied in the other approach, thereby giving the properly consistent rendering.)   Just my two cents, though.

Garry L. Hurley Jr.
Application Developer 2
Office of Information Technology - Bureau of Application Development
PA Department of Labor & Industry
651 Boas Street, Harrisburg, PA 17121 
Phone: 717.506.9373 (UCMS) or 717.346.9799 (Harrisburg)  Fax: 717.506.0798  Mobile: 717.649.0597
www.dli.state.pa.us <http://www.dli.state.pa.us>

-----Original Message-----
From: Dave Pawson [mailto:dave.pawson@gmail.com]
Sent: Friday, June 13, 2008 9:38 AM
To: oiic-formation-discuss@lists.oasis-open.org
Subject: [oiic-formation-discuss] Classic test case

From the main TC list today

I'd hope our tests can
1. Identify such cases as unclear.
2. Action the TC to clarify where appropriate.

regards DaveP

The spec is unclear about the direction of radial gradients:

> 18.354 draw:start-color
> The draw:start-color attributes specifies the start value for the <draw:gradient> element, which interpolates between the value
> of this attribute and draw:end-color.
> The draw:start-color attribute may be used with the following element: <draw:gradient> 15.17.1

And similar for end-color, but it doesn't say which color is the inner
color and which is the
outer color for a radial gradient.

Testing with OpenOffice: creating a radial gradient gives:

<draw:gradient draw:name="Radial_20_red_2f_yellow" draw:display-name="Radial
red/yellow" draw:style="radial" draw:cx="50%" draw:cy="50%"
draw:start-color="#ff3333" draw:end-color="#e6ff00"
draw:start-intensity="100%" draw:end-intensity="100%" draw:border="0%"/>

start-color is red and end-color is yellow.

At the moment we have the following situation (example image attached):
KOffice (Karbon): start-color is the inner color, end-color the outer
OpenOffice: start-color is the outer, end-color the inner

In SVG the first color stop is the most inner color and the last stop the
most outer color.

The OpenDocument specification needs to be clearer about how the colors
need to be handled, especially since OpenOffice and SVG have a different
view on the question.

Dave Pawson

To unsubscribe, e-mail: oiic-formation-discuss-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: oiic-formation-discuss-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]