0
$\begingroup$

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

$\endgroup$
  • $\begingroup$ 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? $\endgroup$ – Nathan Reed Nov 17 '20 at 18:23
  • $\begingroup$ Google: Heart ascii graphics. $\endgroup$ – joojaa Nov 17 '20 at 20:39
  • $\begingroup$ Related: youtu.be/aNR4n0i2ZlM $\endgroup$ – Felipe Gutierrez Nov 18 '20 at 0:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.