0

I wrote a C program which prints a heartbeat (heart star) animation.

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

enter image description here

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

and this

enter image description here

AlbertJ
  • 1
  • 1

0 Answers0