DEV Community

Discussion on: Let's build a rainbow on a canvas from scratch! 🌈📐

Collapse
siddharthshyniben profile image
Siddharth

Nice! I love it when a post has the math.

Can you tell me what math tool you were using in the photos?

Collapse
thormeier profile image
Pascal Thormeier Author

Glad you liked it! That's Desmos, you can find it here: desmos.com/calculator?lang=en
Got it from the YT channel "3blue1brown", I love that tool.

I do however admit that I cheated a bit with the gradient in Desmos. I created each linear function twice with different colors and changed the opacity to make it look like a gradient. It does the trick, though :D

Collapse
siddharthshyniben profile image
Siddharth

Ah, thanks. I watch 3blue1brown too.