Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我想绘制心形我知道如何使用 drawCircle() 和其他一些画布类,但是如何绘制心形
我有一个创建心形的方程式
极坐标 r = (sin(t)*sqrt(abs(cos(t))))/(sin(t) + 7/5) -2*sin(t) + 2
这是链接心形,你可以更了解我想要什么。
提前致谢
Canvas.drawCircle 只知道如何绘制圆而不是“参数曲线”。我建议您先在数学书中查找,以便在尝试为其编写代码之前了解正在发生的事情。
我有时会出现在我看来很长的网址,例如:
"https://www.google.de/#hl=de&sclient=psy-ab&q=break+long+url+css&oq=break+long+url+&gs_l=serp.1.1.0i30l4.3822.3822.0.5634.1.1.0.0.0.0.85.85.1.1.0.