A
A
Alex Mirgorodskiy2020-05-06 20:18:51
Canvas
Alex Mirgorodskiy, 2020-05-06 20:18:51

How to draw such a graph using canvas?

5eb2f0ce2b395984969484.png
Hello everyone, quite recently in canvas, I received the task of drawing such a graph, it turned out to be drawn with ordinary lines
5eb2f16575fbd644001532.png
. And I need smoother ones, I already realized that a bezier curve would suit me for this, but I can’t find an algorithm that will bend the lines correctly (they sometimes go up sometimes down should bend), no one will tell you where you can at least read how such things are made?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stepan Krapivin, 2020-05-06
@AlexWeb6667

There is an article about this on Habré

X
xmoonlight, 2020-05-06
@xmoonlight

Here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question