A
A
AlessArver2021-03-18 14:15:26
JavaScript
AlessArver, 2021-03-18 14:15:26

How to draw a line with circles on canvas?

Good afternoon! Can you please tell me how to draw such a line on the canvas?

6053356d6ca8d316653262.png

The line size is resizable, so you can use dashed to create circles, or use some formula to increase the number of circles drawn with arc.

I can draw circles with dashed, but I can't draw a dashed line on a regular one. Or I can only draw the usual one or dashed. Maybe there is some way to draw a line on a line, but I don't know.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2021-03-18
@AlessArver

Line on line. With different attributes for thickness, color, discontinuity and ends:

The line may well be a curve.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question