Commit 5809fe85 authored by Alija Sabic's avatar Alija Sabic
Browse files

Create progress bar variants

parent 9ae4f88e
No preview for this file type
......@@ -26,8 +26,8 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{tikz}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{fadings}
\usetikzlibrary{external}
% \usetikzlibrary{fadings}
% \usetikzlibrary{external}
\usetikzlibrary{calc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
......@@ -214,6 +214,8 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Sidebar
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\centerarc[#1](#2)(#3:#4:#5)% Syntax: [draw options] (center) (initial angle:final angle:radius)
{ \draw[#1] ($(#2)+({#5*cos(#3)},{#5*sin(#3)})$) arc (#3:#4:#5); }
% \setbeamertemplate{sidebar \beamer@sidebarside}{
\makeatletter
\defbeamertemplate*{sidebar \beamer@sidebarside}{fhtw}{
......@@ -222,6 +224,58 @@
% \vskip 0.25cm \hskip 0.30cm
% \includegraphics[height=20pt]{resources/images/fhtw-logo.pdf}
\begin{tikzpicture}[overlay]
\def\ratio{\insertframenumber/\inserttotalframenumber}
% Variant 4
% \draw[draw=none,fill=\primarycolor!25] (1,-0.965) circle (0.8cm);
% \draw[draw=none,fill=\primarycolor] (1,-0.965) -- (1,-0.17) arc (90:90-360*\ratio:0.8cm) -- (1,-0.965);
% \draw[draw=none,fill=\secondarycolor!30] (1,-0.965) circle (0.6cm);
% Variant 5
% \draw[draw=none,fill=\primarycolor!25] (1,-0.965) circle (0.8cm);
% \draw[draw=none,fill=\primarycolor] (1,-0.965) -- (1,-0.17) arc (90:90-360*\ratio:0.8cm) -- (1,-0.965);
% \draw[draw=none,fill=\secondarycolor!30] (1,-0.965) circle (0.6cm);
% \pgfmathparse{\inserttotalframenumber-1}
% \pgfmathsetmacro{\nums}{\pgfmathresult}
% \foreach \x in {0,...,\nums} {
% \pgfmathparse{360/\inserttotalframenumber*\x}
% \pgfmathsetmacro{\angl}{\pgfmathresult}
% \draw[draw=\secondarycolor!30,line width=1mm] (1,-0.9685) -- +(90-\angl:0.7cm);
% }
% Variant 6
% \draw[draw=none,fill=\primarycolor!25] (1,-0.965) circle (0.8cm);
% \draw[draw=none,fill=\primarycolor] (1,-0.965) -- (1,-0.17) arc (90:90-360*\ratio:0.8cm) -- (1,-0.965);
% \draw[draw=none,fill=\secondarycolor!30] (1,-0.965) circle (0.6cm);
% \pgfmathparse{\inserttotalframenumber-1}
% \pgfmathsetmacro{\nums}{\pgfmathresult}
% \foreach \x in {0,...,\nums} {
% \pgfmathparse{360/\inserttotalframenumber*\x}
% \pgfmathsetmacro{\angl}{\pgfmathresult}
% \draw[draw=\secondarycolor!30,line width=1mm] (1,-0.9685) -- +(90-\angl:0.9cm);
% }
% Variant 7
\draw[draw=none,fill=\primarycolor!25] (1,-0.965) circle (0.8cm);
\draw[draw=none,fill=\primarycolor] (1,-0.965) -- (1,-0.17) arc (90:90-360*\ratio:0.8cm) -- (1,-0.965);
\draw[draw=none,fill=\secondarycolor!30] (1,-0.965) circle (0.6cm);
\pgfmathparse{\inserttotalframenumber-1}
\pgfmathsetmacro{\nums}{\pgfmathresult}
\foreach \x in {0,...,\nums} {
\pgfmathparse{360/\inserttotalframenumber*\x}
\pgfmathsetmacro{\angl}{\pgfmathresult}
\draw[draw=\secondarycolor!30,line width=0.4mm] (1,-0.9685) -- +(90-\angl:0.9cm);
}
\end{tikzpicture}
% Variant 3
\vskip 0.7cm \hskip 0.50cm
\includegraphics[height=15pt]{resources/images/fhtw-logo.pdf}
......@@ -264,8 +318,11 @@
\draw[draw=\primarycolor,line width=0.15mm] (0,0) -- (0,10);
% Variant 3
\draw[draw=\primarycolor!25,line width=0.8mm] (1.7,8.6375) arc (0:360:0.7);
\draw[draw=\primarycolor,line width=0.8mm] (1.7,8.6375) arc (0:(360*\ratio):0.7);
% \draw[draw=\primarycolor!25,line width=0.8mm] (1.7,8.6375) arc (0:360:0.7);
% \draw[draw=\primarycolor,line width=0.8mm] (1.7,8.6375) arc (0:(360*\ratio):0.7);
% Variant 4
% \draw[draw=none,fill=\primarycolor!25] (1,8.6375) circle (0.7cm);
\end{tikzpicture}
......
......@@ -45,6 +45,32 @@
% Intro
% ----------------------------------------------------------------------------------------------------------------------------
\section{Intro}
\begin{frame}{Introduction}
Introduction is boring.
\end{frame}
\begin{frame}{Introduction}
Introduction is boring.
\end{frame}
\begin{frame}{Introduction}
Introduction is boring.
\end{frame}
\begin{frame}{Introduction}
Introduction is boring.
\end{frame}
\begin{frame}{Introduction}
Introduction is boring.
\end{frame}
\begin{frame}{Introduction}
Introduction is boring.
\end{frame}
\begin{frame}{Introduction}
Introduction is boring.
\end{frame}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment