K
K
Konstantin2021-03-24 22:50:47
JavaScript
Konstantin, 2021-03-24 22:50:47

How to connect only two points with lines?

You can see my sketch here
. I only need to connect two points with lines to get a horizontal checkmark shape <
And so that the line runs exactly through the center of the circle.
And how to get rid of manually adjusting pixels in 4px size due to circle radius

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2021-03-24
@sergiks

beginPath();
moveTo(x1, y1);
lineTo(x2, y2);
stroke();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question