Seite 1 von 1

Ellipse mit Circular Glow

Verfasst: Mo 30. Sep 2024, 13:17
von Patrick1990
Hallo,

ich würde gern den Glow-Effekt um eine gedrehte Ellipse bekommen. Habt ihr eine Idee wie ich das machen könnte? Der Circular Glow funktioniert da leider nicht, bzw. dreht nicht mit.

Hier das Beispiel:
\documentclass[border=5mm]{standalone}
\usepackage{tikz}
\usetikzlibrary {shadows}

\begin{document}
\begin{tikzpicture}
    \path[circular glow={fill=red!80}] (0,0) circle(3mm);
    \path[circular glow={fill=red!80}, rotate around={-20:(1,1)}] (1,1) ellipse (8mm and 4mm);
\end{tikzpicture}
\end{document}

Re: Ellipse mit Circular Glow

Verfasst: Do 3. Okt 2024, 08:22
von Stefan Kottwitz
Hallo Patrick,

rotiere mit der transform canvas Option:
\documentclass[border=5mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{shadows}
\begin{document}
\begin{tikzpicture}
    \path[circular glow={fill=red!80},
      transform canvas={rotate around={-20:(1,1)}}] (1,1) ellipse (8mm and 4mm);
\end{tikzpicture}
\end{document}
Stefan

Re: Ellipse mit Circular Glow

Verfasst: Mo 7. Okt 2024, 11:27
von Patrick1990
Hallo Stefan,
leider rotiert da nichts.

Gruß
Patrick

Re: Ellipse mit Circular Glow

Verfasst: Mo 7. Okt 2024, 12:13
von Stefan Kottwitz
Hallo Patrick,

wenn man die Option mit einem Scope verwendet, klappt es:
\documentclass[border=18mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{shadows}
\begin{document}
\begin{tikzpicture}
  \path[circular glow={fill=red!80}] (0,0) circle(3mm);
  \begin{scope}[transform canvas={rotate around={-20:(1,1)}}]
    \path[circular glow={fill=red!80}] (1,1) ellipse (8mm and 4mm);
  \end{scope}
\end{tikzpicture}
\end{document}
Stefan

Re: Ellipse mit Circular Glow

Verfasst: Do 10. Okt 2024, 12:10
von Patrick1990
Vielen Dank! Super :)