Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to draw a heart with pen?
- P444
-
500+ posts
How to draw a heart with pen?
So uh yeah… It is a nightmare that I COMPLETELY forgot trigonometry!!
How do you draw a heart with pen from point A to B. Illustration:

Thanks! <3
How do you draw a heart with pen from point A to B. Illustration:

Thanks! <3
- TechyTester
-
74 posts
How to draw a heart with pen?
Perhaps you could try finding a circle script, stopping it at a certain, adding a “V” shape at the top, and redoing it at the other side? I don't have any examples tho, sry XD
- P444
-
500+ posts
How to draw a heart with pen?
Gonna try it. Though I doubt that the top sides of the heart are semi-circles/ellipses… Perhaps you could try finding a circle script, stopping it at a certain, adding a “V” shape at the top, and redoing it at the other side? I don't have any examples tho, sry XD
Edit: Ok… That went horribly wrong D:
Last edited by P444 (Feb. 21, 2017 15:17:22)
- P444
-
500+ posts
How to draw a heart with pen?
Found this:

I have a liiiitle question. What does |x| represent?

I have a liiiitle question. What does |x| represent?
- P444
-
500+ posts
How to draw a heart with pen?
Thanks!!! Now I can start with the equations! It's the absolute value of x.
I still have no idea why I don't remember any of these :/
- P444
-
500+ posts
How to draw a heart with pen?
Hey, I just threw this together.Nice! Question though, how would you draw it from point A to B (as illustrated on the first post)?
https://scratch.mit.edu/projects/146398300
Mean while I got a neat little equation, but suffers the same issue. How do I center it around point A and B??
The basic heart: https://scratch.mit.edu/projects/146403009/
x=16sin^3(t)
y=13cos(t)-6cos(2t)-2cos(3t)-(-1cos(4t))
- deck26
-
1000+ posts
How to draw a heart with pen?
If the centre has coords x and y then all movement needs adjusting for that. If you have a function y=f(x) you'd instead use y=ycentre + f(x - xcentre).
I think that's right.
I think that's right.
- NitroCipher
-
500+ posts
How to draw a heart with pen?
Hey, I just threw this together.Nice! Question though, how would you draw it from point A to B (as illustrated on the first post)?
https://scratch.mit.edu/projects/146398300
Mean while I got a neat little equation, but suffers the same issue. How do I center it around point A and B??
The basic heart: https://scratch.mit.edu/projects/146403009/x=16sin^3(t)
y=13cos(t)-6cos(2t)-2cos(3t)-(-1cos(4t))
What do you mean by from point A to B? Where would these points fall on the heart?
- P444
-
500+ posts
How to draw a heart with pen?
Hope I understood that correctly! If the centre has coords x and y then all movement needs adjusting for that. If you have a function y=f(x) you'd instead use y=ycentre + f(x - xcentre).
I think that's right.
Let's say 4 points instead of 2. Join them and you get a square/rectangle, the heart should be inside the square/rectangle, centering on it.Hey, I just threw this together.Nice! Question though, how would you draw it from point A to B (as illustrated on the first post)?
https://scratch.mit.edu/projects/146398300
Mean while I got a neat little equation, but suffers the same issue. How do I center it around point A and B??
The basic heart: https://scratch.mit.edu/projects/146403009/x=16sin^3(t)
y=13cos(t)-6cos(2t)-2cos(3t)-(-1cos(4t))
What do you mean by from point A to B? Where would these points fall on the heart?
- deck26
-
1000+ posts
How to draw a heart with pen?
For @NitroCipher's version you'd need to replace the goto 0,0 with the coords between A and B (average of Ax and Bx, average of Ay and By) since all the moves are relative other than the two goto's.
- deck26
-
1000+ posts
How to draw a heart with pen?
https://scratch.mit.edu/projects/146406839/Box added now.
- P444
-
500+ posts
How to draw a heart with pen?
Thank you! Those equations gave me the idea I was looking for! I have almost got exactly what I needed If the centre has coords x and y then all movement needs adjusting for that. If you have a function y=f(x) you'd instead use y=ycentre + f(x - xcentre).https://scratch.mit.edu/projects/146403009/#player
I think that's right.
Will play around with the values a bit. Thank you to everyone who helped me!
- deck26
-
1000+ posts
How to draw a heart with pen?
I've added scaling to my remix.
Happy to delete my remix when you're happy you have what you want.
Happy to delete my remix when you're happy you have what you want.
- P444
-
500+ posts
How to draw a heart with pen?
I think I am ok with the results now. Also, why delete the remix? Somebody may stumble upon something similar, and need that! I've added scaling to my remix.
Happy to delete my remix when you're happy you have what you want.
Thanks again

- crazycatlady20
-
31 posts
How to draw a heart with pen?
So uh yeah… It is a nightmare that I COMPLETELY forgot trigonometry!!
How do you draw a heart with pen from point A to B. Illustration:
Thanks! <3
just generally how to draw a heart using pen, simple please, i'm new. i want to use this in a project im currently working on


- deck26
-
1000+ posts
How to draw a heart with pen?
What's wrong with the solutions above?So uh yeah… It is a nightmare that I COMPLETELY forgot trigonometry!!
How do you draw a heart with pen from point A to B. Illustration:
Thanks! <3
just generally how to draw a heart using pen, simple please, i'm new. i want to use this in a project im currently working oni dunno how
![]()
if you still need help please create your own new topic rather than necroposting.
- UniversalWolfCrystal
-
4 posts
How to draw a heart with pen?
hlp! TmT I dont understand! ;w; 
_________________________________________________
Hello!

_________________________________________________
Hello!
- Discussion Forums
- » Help with Scripts
-
» How to draw a heart with pen?