Ellipse mit Circular Glow Thema ist als GELÖST markiert

Tabellen und Grafiken erstellen und anordnen


Patrick1990
Forum-Century
Forum-Century
Beiträge: 213
Registriert: Mo 18. Feb 2013, 07:56
Wohnort: Ilmenau

Ellipse mit Circular Glow

Beitrag 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}

Benutzeravatar
Stefan Kottwitz
Admin
Admin
Beiträge: 2759
Registriert: Di 8. Jul 2008, 00:39
Kontaktdaten:

Re: Ellipse mit Circular Glow

Beitrag 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

Patrick1990
Forum-Century
Forum-Century
Beiträge: 213
Registriert: Mo 18. Feb 2013, 07:56
Wohnort: Ilmenau

Re: Ellipse mit Circular Glow

Beitrag von Patrick1990 »

Hallo Stefan,
leider rotiert da nichts.

Gruß
Patrick

Benutzeravatar
Stefan Kottwitz
Admin
Admin
Beiträge: 2759
Registriert: Di 8. Jul 2008, 00:39
Kontaktdaten:

Re: Ellipse mit Circular Glow

Beitrag 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

Patrick1990
Forum-Century
Forum-Century
Beiträge: 213
Registriert: Mo 18. Feb 2013, 07:56
Wohnort: Ilmenau

Re: Ellipse mit Circular Glow

Beitrag von Patrick1990 »

Vielen Dank! Super :)

Antworten