A
A
andrey_levushkin2020-08-10 17:20:33
SVG
andrey_levushkin, 2020-08-10 17:20:33

How to draw a vector line in millimeters?

I draw a red line 10 pixels long like this:

<line x1='0' y1='0' y2='0' x2='10' style='stroke:rgb(255,0,0); stroke-width:1' />

But how to draw a line 10 mm long?
If we take the known ratio: 1 pixel \u003d 0.264583333333334 millimeter, we get a HUGE UNACCEPTABLE ERROR

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-08-10
@andrey_levushkin

well, indicate that these are millimeters:
10mm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question