I wanted some interesting mathematical functions for canvas for shapes if you have please share. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I wanted some interesting mathematical functions for canvas for shapes if you have please share.

I am building a website which contain math for canvas if you have any mathematical functions like for drawing heart,etc please share in comment.

15th May 2019, 10:59 AM
Pratik Mohite
Pratik Mohite - avatar
2 Answers
+ 4
Cardioids kind of look like a heart. r(φ) = 1 - cos φ Lissajous curves look really cool too. x(t) = sin(ω1 * t + φ1) y(t) = cos(ω2 * t + φ2)
15th May 2019, 11:51 AM
Schindlabua
Schindlabua - avatar
+ 1
BroFarOps©®️™️ 🐱 I believe you have something😉
15th May 2019, 11:13 AM
Trigger
Trigger - avatar