MelonBP

Heart command

Oct 14th, 2020
823
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. # Description
  2. A command that generates a heart inside your selection. Mess with the shape a bit by playing with the variable (a).
  3.  
  4. # The command:
  5. //g 95:14 a=0.5;b=sqrt(1-abs(z)^2);(y<a*b)?y>=b*((1+a)*(-4*sqrt(1-abs(x/b))/5-(1-abs(x/b))^5/5)+a):y<=b*((1-a)*sqrt(1-(1-2*abs(x/b))^2)+a)
  6.  
  7. # The variable
  8. - 'a' controls how high up the round top shape of the heart begins, and this value must be between -1 and 1. I recommend just leaving 'a' as 0.5, but you're free to change it if you so choose.
  9.  
  10. # Nerd shit
  11. Relevant graph: https://www.desmos.com/calculator/xs0v5jczsd
Add Comment
Please, Sign In to add comment