本文介绍了绘制形状心脏的Andr​​oid帆布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想画心脏形状我知道如何使用画圆()和其他一些帆布类,但如何绘制心脏形状

hi i want to draw heart shape i know how to use drawCircle() and some other canvas classes but how to draw heart shape

我有心脏创建形状的公式

i have an equation which create heart shape

   polar r = (sin(t)*sqrt(abs(cos(t))))/(sin(t) + 7/5) -2*sin(t) + 2

这是链接<一个href=\"http://www.wolframalpha.com/input/?i=polar%20r=%28sin%28t%29%2asqrt%28abs%28cos%28t%29%29%29%29/%28sin%28t%29%20%2b%207/5%29%20-2%2asin%28t%29%20%2b%202\"相对=nofollow>心脏形其中u可以更了解我想要什么。

this is link heart shape where u can more understand what i want.

在此先感谢

推荐答案

Canvas.drawCircle只知道如何画圈圈不是参数曲线。我想提醒你,让你明白什么是试图写入code,需要先看看发生了那在一本数学书第一。

Canvas.drawCircle only knows how to draw circles not 'parametric curves'. I would advise that you look that up in a math book first so that you understand what is happening before trying to write the code for it.

这篇关于绘制形状心脏的Andr​​oid帆布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-16 05:26