Skip to content
Snippets Groups Projects
Commit 98d82a1b authored by Thorsten Wißmann's avatar Thorsten Wißmann :guitar:
Browse files

rounded border mit hacks aber besser als nix

parent 1871b36b
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@
\usepackage[margin=0.5in]{geometry}
\usetikzlibrary{arrows}
\usetikzlibrary{shadows}
\usetikzlibrary{calc} % für ($ ... $)
\pagestyle{empty}
......@@ -59,13 +60,16 @@
{
\pgfmathsetmacro{\lastarc}{\curarc}
\pgfmathsetmacro{\curarc}{\lastarc+3.6*\percent/2}
\pgfmathsetmacro{\startarc}{\lastarc+1}
\pgfmathsetmacro{\endarc}{\curarc-1}
\pgfmathsetmacro{\startarc}{\lastarc}
\pgfmathsetmacro{\endarc}{\curarc}
\pgfmathsetmacro{\middle}{0.5*\startarc+0.5*\endarc}
\draw[fill=\curcolor, draw=none]
(\startarc:\smallradius cm) arc (\startarc:\endarc:\smallradius cm)
-- (\endarc:\radius cm) arc (\endarc:\startarc:\radius
cm) -- cycle
\def\mypath{(\startarc:\smallradius cm)
arc (\startarc:\endarc:\smallradius cm)
-- (\endarc:\radius cm)
arc (\endarc:\startarc:\radius
cm) -- cycle}
\draw[fill=\curcolor, draw=boxbg,rounded corners=.2cm,line width=.1cm]
\mypath
node at (\middle:0.5*\radius+0.5*\smallradius) {{\bf\color{percentcolor}\percent \%}};
%\draw (\middle:\radius) -- (\middle:0.5+\radius) node[\anchor] {\name};
%\draw (\middle:1.1*\radius) node[\anchor] {\color{\curcolor}\name};
......@@ -86,10 +90,11 @@
\definecolor{tangobrownlight}{HTML}{E9B96E}
\definecolor{tangobrown}{HTML}{C17D11}
\definecolor{tangobrowndark}{HTML}{8F5902}
\definecolor{boxbg}{HTML}{E9B96E}
\newcommand{\twbox}[2]{%
\begin{tikzpicture}%
\draw node[draw=tangobrowndark,fill=tangobrown!10,%
\draw node[draw=tangobrowndark,fill=boxbg,%
very thick,rounded corners,%
inner sep=2ex]%
{%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment