3D heart
📅 March 21, 2024 | 👁️ Views: 69
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.9}
\pgfplotsset{
/pgfplots/colormap={pink}{color(0cm)=(purple); color(1cm)=(pink!80!purple); color(2cm)=(pink!90); color(3cm)=(pink) }
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
view={0}{10},
axis equal,
axis lines=none,
colormap name =pink,
]
\addplot3[
surf,
shader=faceted,
samples=50,
domain=0:2*pi,y domain=0:2*pi,
z buffer=sort,
opacity=0.15]
(
{(sin(deg(x)))^3*cos(deg(y))},
{(sin(deg(x)))^3*sin(deg(y))},
{(13*cos(deg(x))-5*cos(2*deg(x))-2*cos(3*deg(x))-cos(4*deg(x)))/16}
);
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.9}
\pgfplotsset{
/pgfplots/colormap={pink}{color(0cm)=(purple); color(1cm)=(pink!80!purple); color(2cm)=(pink!90); color(3cm)=(pink) }
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
view={0}{10},
axis equal,
axis lines=none,
colormap name =pink,
]
\addplot3[
surf,
shader=faceted,
samples=50,
domain=0:2*pi,y domain=0:2*pi,
z buffer=sort,
opacity=0.15]
(
{(sin(deg(x)))^3*cos(deg(y))},
{(sin(deg(x)))^3*sin(deg(y))},
{(13*cos(deg(x))-5*cos(2*deg(x))-2*cos(3*deg(x))-cos(4*deg(x)))/16}
);
\end{axis}
\end{tikzpicture}
\end{document}
Related Courses, Exams, and Exercises
- A love Heart with Latex tikz Course
- A real Heart with Latex tikz Course
- heart love with latex tikzpicture Course
- Heart shaped paragraph Course
Course PDF:
if you find this content helpful, Please consider supporting me with a small donation
إن وجدت هذا المحتوى مفيدا، من فضلك إدعمني بمبلغ بسيط كتبرع
Buy me a coffee — إشتر لي قهوة
PayPal.me • عبر بايبالOr bank transfer • أو حوالة بنكية
Titulaire : RADOUAN MOSAID RIB : 230 090 6501953211022000 65 IBAN : MA64 2300 9065 0195 3211 0220 0065 BIC / SWIFT : CIHMMAMC
Most Viewed Courses
Tous les sujets des suites numériques des examens nationaux 2008 - 2022
Views: 1.63K
Exam • Maths • 2 Bac Science
DM 1 - Arithmetiques, Calcul vectoriel et projection
Views: 1.56K
Exercise • Maths • Tronc Commun Sciences
MATHEMATIQUES Examens nationaux 2003-2021 2 Bac.Sciences expérimentales
Views: 1.52K
Exam • Maths • 2 Bac Science
Control 01 S01 En arithmétiques et Calcul vectoriel - A 2025-2026
Views: 1.49K
Exam • Maths • Tronc Commun Sciences
Recent Articles
Boosting LaTeX Editing with Custom Vim Mappings
23 Nov 2025
Quran Search: A Feature rich and modern design
13 Feb 2025