How to understand coordinates

Post questions on how to use or achieve an effect in Inkscape.
Zolotoy
Posts: 13
Joined: Tue Sep 30, 2014 5:10 am

How to understand coordinates

Postby Zolotoy » Tue Sep 30, 2014 5:14 am

I have created a file that consists of a triangle and a circle. The circle looks like this:
<circle
style="fill:#000c00;fill-opacity:1"
id="path4142"
cx="642.11932"
cy="459.29367"
r="35.673294" />

My next step is to use this image in another product. I need to make this circle responding to mouse clicks. for that I need to know how to interpret the coordinates above. Can someone please explain what these coordinates represent?

Thanks

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: How to understand coordinates

Postby Lazur » Tue Sep 30, 2014 6:05 am

Current stabile release of inkscape doesn't have a circle object.

The cx and cy coordinates locate the origo of the circle.
If it was made with a pre-release, that means a position right and above the (0;0) point, because inkscape's coordinate system is flipped.
The r value shows the length of the radius of the circle.

Probably all of the values represent pixel dimensions.


Another product?
May the information in the svg specs help you with that.

Zolotoy
Posts: 13
Joined: Tue Sep 30, 2014 5:10 am

Re: How to understand coordinates

Postby Zolotoy » Tue Sep 30, 2014 6:11 am

What is a 0;0 point? Left lower corner of the picture?

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: How to understand coordinates

Postby Lazur » Tue Sep 30, 2014 6:13 am

The lower left corner of the page border.


Return to “Help with using Inkscape”