<p>I wrote a C program <a href="https://github.com/albert10jp/c_learning/blob/main/heart_star_animation.c" rel="nofollow noreferrer">which prints a heartbeat (heart star) animation</a>.</p>
<p>The key is to print a heart of stars, which looks like this</p>
<p><a href="https://i.sstatic.net/9CzFS.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/9CzFS.png" alt="enter image description here" /></a></p>
<p>consists of line of stars and blanks.</p>
<pre><code>    * * * *           * * * * 
  * * * * * *       * * * * * * 
* * * * * * * *   * * * * * * * * 
* * * * * * * * * * * * * * * * * 
  * * * * * * * * * * * * * * * 
    * * * * * * * * * * * * * 
      * * * * * * * * * * * 
        * * * * * * * * * 
          * * * * * * * 
            * * * * * 
              * * * 
                * 
</code></pre>
<p>Is there an existing method to make it more like a heart? For example, how many lines should I use to draw the top half of the heart shape?</p>
<p>By &quot;more like&quot;, I mean more roundish, like this</p>
<p><a href="https://i.sstatic.net/9iu35.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/9iu35.jpg" alt="enter image description here" /></a></p>
<p>and this</p>
<p><a href="https://i.sstatic.net/YPbHx.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/YPbHx.jpg" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2020-11-17T18:23:33.037Z
What do you mean "more like a heart"? Can you give a drawing or an image or something of how you want it to look?
Nathan Reed
CC BY-SA 4.0
2020-11-17T20:39:13.817Z
Google: Heart ascii graphics.
joojaa
CC BY-SA 4.0
2020-11-18T00:48:55.497Z
Related: https://youtu.be/aNR4n0i2ZlM
Felipe Gutierrez
<2d>
Is there an existing method to draw a heart of stars that looks more like a heart?
AlbertJ
# Is there an existing method to draw a heart of stars that looks more like a heart?

(Asked by: username_0 on 2020-11-17)

I wrote a C program [which prints a heartbeat (heart star) animation](https://github.com/albert10jp/c_learning/blob/main/heart_star_animation.c).

The key is to print a heart of stars, which looks like this

[![enter image description here](https://i.sstatic.net/9CzFS.png)](https://i.sstatic.net/9CzFS.png)

consists of line of stars and blanks.

```
    * * * *           * * * * 
  * * * * * *       * * * * * * 
* * * * * * * *   * * * * * * * * 
* * * * * * * * * * * * * * * * * 
  * * * * * * * * * * * * * * * 
    * * * * * * * * * * * * * 
      * * * * * * * * * * * 
        * * * * * * * * * 
          * * * * * * * 
            * * * * * 
              * * * 
                * 

```

Is there an existing method to make it more like a heart? For example, how many lines should I use to draw the top half of the heart shape?

By "more like", I mean more roundish, like this

[![enter image description here](https://i.sstatic.net/9iu35.jpg)](https://i.sstatic.net/9iu35.jpg)

and this

[![enter image description here](https://i.sstatic.net/YPbHx.jpg)](https://i.sstatic.net/YPbHx.jpg)

**Tags:** 2d

> **Comments:**
> **username_1**: What do you mean "more like a heart"? Can you give a drawing or an image or something of how you want it to look?  
> **username_2**: Google: Heart ascii graphics.  
> **username_3**: Related: https://youtu.be/aNR4n0i2ZlM  

---

## 0 answers

