Skip to content

Commit

Permalink
added button art
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart Snapp authored and Bart Snapp committed Dec 3, 2013
1 parent f3b7785 commit a2b9371
Showing 1 changed file with 139 additions and 0 deletions.
139 changes: 139 additions & 0 deletions curriculum/branding/buttons/button.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
\documentclass[12pt]{article}
\usepackage{kmath}
\usepackage{kerkis}
\usepackage{pgf,tikz,xcolor} % for tikz graphs and colors
\usetikzlibrary{decorations.text} % decorations.text for the text along path feature
\pagestyle{empty} % to suppress page numbers





\colorlet{background}{white} % Color of the page
\colorlet{textColor}{black} % Color of the text
\colorlet{cowLight}{background} % the light colors of the cow --
% usually the same as the background
\colorlet{cowDark}{textColor} % the dark colors of the cow -- usually

\pagecolor{background}
\color{textColor}



\newcommand{\drawfoot}{% %% changed black -> cowDark, white -> cowLight
\begin{scope}[xshift=0.06in,color=cowDark]
\draw[fill=cowDark!70!cowLight] (0,0) arc (0:180:0.12in) -- (0,0) -- cycle;
\draw (-0.1in,0) arc (0:30:0.12in);
\end{scope}
}

\newcommand{\drawhorn}{%
\draw[color=brown!80!black,fill=brown] (0,0)
arc (30:60:0.45in)
arc (30:0:0.4in);
}

\newcommand{\draweye}{% %% changed black -> cowDark, white -> cowLight
\draw[fill=cowLight] (0,0) circle (0.09in);
\draw[fill=cowDark] (0.02in,-0.02in) circle (0.02in);
}

\newcommand{\headpath}{%
(0,0in)
arc (90:175:0.35in) % top ear
arc (250:300:0.25in) % bottom ear
arc (170:270:0.30in) % chin
arc (-90:10:0.30in) % chin
arc (-120:-70:0.25in) % bottom ear
arc (5:90:0.35in) % top ear
-- cycle
}

\newcommand{\drawbody}{
\begin{scope}
\clip (0,0) circle (0.5in);
\draw[color=cowDark,fill=cowLight] (0,0) circle (0.5in); % so the body isn't transparent
\begin{scope}[color=cowDark!85!cowLight] %% cow spots on body
\fill[xshift=0.2in,yshift=0.1in] plot [smooth cycle, tension=2] coordinates { (0,0) (0.6,0.6) (-0.6,0.6) };
\fill[xshift=0.4in,yshift=-0.4in] plot [smooth cycle, tension=2] coordinates { (0,0) (0.6,0.6) (-0.6,0.6) };
\fill[xshift=-0.4in,yshift=-0.6in] plot [smooth cycle, tension=2] coordinates { (0,0) (0.6,0.6) (-0.6,0.6) };
\fill[xshift=-0.2in,yshift=0.1in] plot [smooth cycle, tension=2] coordinates { (0,0) (-0.2,-0.6) (0.6,-0.6) };
\fill[xshift=-0.2in,yshift=0.5in] plot [smooth cycle, tension=2] coordinates { (0.35,0.35) (-0.9,-0.8) (0.2,-0.2) };
\end{scope}
\draw[color=cowDark, line width=4pt] (0,0) circle (0.5in); % puts the boarder back in.
\end{scope}
}





\newcommand{\cow}[1]{
\begin{scope}[transform canvas={scale=#1},shift={(30mm,-8mm)},line width=2pt] %% make function that can be moved and scaled.

\drawbody

\begin{scope}[yshift=-0.53in]
\begin{scope}[xshift=0.3in]
\drawfoot
\end{scope}

% draw left foot
\begin{scope}[xshift=-0.3in,xscale=-1]
\drawfoot
\end{scope}
\end{scope}

% draw head
\begin{scope}[yshift=0.6in,xshift=-.15in]
\draw[color=cowDark,fill=cowLight] \headpath; %% changed white -> cowLight

\clip \headpath;
\fill[color=cowDark!85!cowLight,xshift=0.65in,yshift=0.2in] plot [smooth cycle, tension=2] coordinates { (0,0) (-1,-1) (-0.5,0.5) }; %% changed black -> cowDark, white -> cowLight

% draw nose
\begin{scope}[xshift=.15in,xscale=1.5,yshift=-0.6in,color=pink!50!black]
\draw[fill=pink] (0in,0) circle (0.09in);
\draw (0.1,0.1) -- (0.1,0);
\draw (-0.1,0.1) -- (-0.1,0);
\end{scope}

\draw[stroke=cowDark,fill=none] \headpath;
\end{scope}

% draw horn
\begin{scope}[yshift=0.55in]
\begin{scope}[xshift=-.15in]
\drawhorn
\end{scope}
\begin{scope}[xshift=.15in,xscale=-1]
\drawhorn
\end{scope}
\end{scope}

% draw eyes
\begin{scope}[yshift=0.4in]
\begin{scope}[xshift=-.11in,color=cowDark]
\draweye
\end{scope}
\begin{scope}[xshift=.11in,xscale=-1,color=cowDark]
\draweye
\end{scope}
\end{scope}
\end{scope}}




\begin{document}
\begin{figure}[htbp]
\begin{tikzpicture}
\draw[double distance=10mm,double=gray,opacity=0.3](0,0) circle (4.4cm); % a double circle
\path [postaction={decorate,decoration={raise=-1ex,text along path, reverse path,text align=center, text={|\sffamily\bfseries\huge\color{yellow}|MOOCULUS}}}] (-36:4.4cm) arc (-36:216:4.4cm); % commands should be between delimiters ||
\path [postaction={decorate,decoration={raise=-1ex,text along path,text align=center, text={|\sffamily\huge\color{yellow}|mooculus.osu.edu}}}] (-36:-4.4cm) arc (-36:216:-4.4cm); % commands should be between delimiters ||
\begin{scope}[xshift=-1.2in,yshift=.2in]
\cow{2}
\end{scope}
\end{tikzpicture}
\end{figure}
\end{document}

0 comments on commit a2b9371

Please sign in to comment.