B
B
bpGusar2020-11-26 13:15:33
JavaScript
bpGusar, 2020-11-26 13:15:33

How and with what can you draw a gradient based on a sine?

5fbf7f40a3233005503254.png
There is such a graph with a sine. When certain parameters are changed, it can increase or change, for example, as follows: There are more vertices
5fbf7f8cac2bf936925923.png

on the chart.

The task is to draw a gradient based on this graph.

How can this be implemented?

It should look something like this
5fbf802d19ae7202832531.png

. Any help would be greatly appreciated!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
RAX7, 2020-11-26
@bpGusar


https://developer.mozilla.org/en/docs/Web/API/Canv...
https://developer.mozilla.org/en-US/docs/Web/API/C...

L
lamer350, 2020-11-26
@lamer350

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question