what is the axis of a gradient?

XMLWordPrintable

Details

• Type: Bug
• Status: Applied
• Priority: Major
• Resolution: Fixed
• Affects Version/s: ODF 1.2 CD 05
• Fix Version/s:
• Component/s:
• Labels:
None
• Resolution:
Hide

change

In 19.220.2 [draw:style] draw:gradient, change description for linear from

" defines a gradient where the colors blend along a linear vector perpendicular to the axis of the gradient."

to

" defines a gradient where the colors blend along the linear axis of the gradient. The axis of the gradient is specified with the draw:angle attribute clockwise to the vertical axis."

Show
change In 19.220.2 [draw:style] draw:gradient, change description for linear from " defines a gradient where the colors blend along a linear vector perpendicular to the axis of the gradient." to " defines a gradient where the colors blend along the linear axis of the gradient. The axis of the gradient is specified with the draw:angle attribute clockwise to the vertical axis."

Description

A draw:gradient has among others the attributes draw:angle and draw:style.

One possible value for draw:style is "linear", this is defined as: " a gradient where the colors blend along a linear vector perpendicular to the axis of the gradient."

If the colors blend along a vector perpendicular to the axis, then along the axis, the color should be constant, but the definition of draw:angle is:
"The draw:angle attribute specifies an angle that rotates the axis at which the gradient values are interpolated. " So apparently the colours are interpolated along the axis, not perpendicular to it.

This is a conflict.

Once again of course, we do not specify whether the angle is given in mathematically positive (ie. counter clockwise) sense and where the 0 degree axxis is.

People

• Assignee:
Patrick Durusau
Reporter:
Andreas Guelzow (Inactive)
• Watchers:
0 Start watching this issue

Dates

• Created:
Updated:
Resolved: