how to know the color code and the center of a radial gradient and how to display to send a graphic company ?

Asked by jbaarq

I´d like to know the color code and the center of a radial gradient and how to display them to send a graphic company?

Question information

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Hachmann (marenhachmann) said :
#1

Hi jbaarq,

To find the color code:
- Select the object with the gradient.
- Open the 'Fill and Stroke' dialog.
- Switch to node tool or gradient tool.
- Click on the gradient stop you want to know more about.
- The 'Fill and Stroke' dialog now displays the selected color for that gradient stop.

To find the center of the radial gradient:
- Select the object with the gradient
- Open the 'XML Editor' dialog.
- Look for the gradient name in the 'style' attribute of the object.
- Jump to the 'defs' section in the XML (svg:defs on the left side)
- Select the correct gradient there.
- Look up cx and cy for center coordinates.

" how to display them to send a graphic company?"

- Sorry, I don't understand what you mean. What is a 'graphic company'? How do you intend to display them? Why would you need this (can't you just send them the file?)

Kind regards,
 Maren

Revision history for this message
su_v (suv-lp) said :
#2

On 2016-01-23 15:37 (+0100), Hachmann wrote:
> To find the center of the radial gradient:
> - Select the object with the gradient
> - Open the 'XML Editor' dialog.
> - Look for the gradient name in the 'style' attribute of the object.
> - Jump to the 'defs' section in the XML (svg:defs on the left side)
> - Select the correct gradient there.
> - Look up cx and cy for center coordinates.

Please keep in mind that the actual coordinates of the rendered gradient in viewport coordinates will be the result of applying any transforms in effect - the one in the gradient's gradientTransform attribute (and those in possibly chained gradient definitions), as well as any preserved transforms on the object itself and its parent containers (see SVG spec for further details). The document's viewBox and width/height attributes furthermore will set a drawing scale (which can change the absolute size of an SVG px aka SVG user unit). Keep also in mind that coordinates read in the XML source are specified in the SVG coordinate system which does not match the coordinate system used in Inskcape's GUI (SVG: left-handed Cartesian coordinate system with origin in upper left corner, Inkscape GUI: right-handed Cartesian coordinate system with origin in lower left corner of the page).

Whether or not the values read directly as-is from the object's linked gradient definition in the document's <defs> section depends on the further use case of those coordinates.

Can you help with this problem?

Provide an answer of your own, or ask jbaarq for more information if necessary.

To post a message you must log in.