使用 TikZ 创建自己的大学徽标

使用 TikZ 创建自己的大学徽标

我想用 tikz 创建自己的大学徽标,因为在标题页上,它具有更好的分辨率。

徽标必须是这样的:

在此处输入图片描述

我也可以在 tikzpicture 中写文字吗?

我怎样才能在这张图片中使用正确的颜色?

我需要你的帮助,因为我对 tikz 没有太多经验。


我的第一个例子:

\documentclass[tikz]{standalone}

\begin{document}
    \begin{tikzpicture}
    \draw[fill,blue] (0,0)--(2,1)--(2,0.1)--(0.9,-0.5)--(0,0);
    \draw[fill,gray] (-0.2,-0.1)--(0.9,-0.7)--(0.9,-1.3)--(-0.2,-0.7)--(-0.2,-0.1);
    \draw[fill,blue] (3.1,0.7)--(4.1,0.3)--(3.1,-0.1)--(3.1,0.7);
    \draw[fill,gray] (4.3,0.2)--(4.3,-0.7)--(2,-1.5)--(2,-0.7)--(4.3,0.2);
    \end{tikzpicture}
\end{document}

在此处输入图片描述

答案1

使用颜色选择器,您将获得(大约)

\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\definecolor{myblue}{RGB}{1,158,227}
\definecolor{mygray}{RGB}{197,197,197}
    \draw[fill,myblue] (0,0)--(2,1)--(2,0.1)--(0.9,-0.5)--(0,0);
    \draw[fill,mygray] (-0.2,-0.1)--(0.9,-0.7)--(0.9,-1.3)--(-0.2,-0.7)--(-0.2,-0.1);
    \draw[fill,myblue] (3.1,0.7)--(4.1,0.3)--(3.1,-0.1)--(3.1,0.7);
    \draw[fill,mygray] (4.3,0.2)--(4.3,-0.7)--(2,-1.5)--(2,-0.7)--(4.3,0.2);
\end{tikzpicture}
\end{document}

在此处输入图片描述

要获得文本,您应该将其添加到标题页中,但在 Ti 之外Z 图片。但如果你想要,

\documentclass[tikz]{standalone}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\definecolor{myblue}{RGB}{1,158,227}
\definecolor{mygray}{RGB}{197,197,197}
    \fill[myblue] (0,0)--(2,1)--(2,0.1)--(0.9,-0.5)--(0,0);
    \fill[mygray] (-0.2,-0.1)--(0.9,-0.7)--(0.9,-1.3)--(-0.2,-0.7)--(-0.2,-0.1);
    \fill[myblue] (3.1,0.7)--(4.1,0.3)--(3.1,-0.1)--(3.1,0.7);
    \fill[mygray] (4.3,0.2)--(4.3,-0.7)--(2,-1.5)--(2,-0.7)--(4.3,0.2);
    \node[font=\huge\sffamily\bfseries] (upper) at (2,-3) {THIS IS SOME TEXT};
    \node[below=5pt of upper,font=\Large\sffamily] {HELLO WORLD};
\end{tikzpicture}
\end{document}

在此处输入图片描述

颜色更佳

\documentclass[tikz]{standalone}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\definecolor{myblue}{RGB}{1,158,227}
\definecolor{mygray}{RGB}{197,197,197}
\definecolor{textgray}{RGB}{85,85,85}
    \fill[myblue] (0,0)--(2,1)--(2,0.1)--(0.9,-0.5)--(0,0);
    \fill[mygray] (-0.2,-0.1)--(0.9,-0.7)--(0.9,-1.3)--(-0.2,-0.7)--(-0.2,-0.1);
    \fill[myblue] (3.1,0.7)--(4.1,0.3)--(3.1,-0.1)--(3.1,0.7);
    \fill[mygray] (4.3,0.2)--(4.3,-0.7)--(2,-1.5)--(2,-0.7)--(4.3,0.2);
    \node[font=\huge\sffamily\bfseries\color{textgray}] (upper) at (2,-3) {THIS IS SOME TEXT};
    \node[below=5pt of upper,font=\Large\sffamily\color{textgray}] {HELLO WORLD};
\end{tikzpicture}
\end{document}

在此处输入图片描述

并且,要完成此操作,请运行 XeLaTeX 或 LuaLaTeX

\documentclass[tikz]{standalone}
\usepackage{fontspec}
\setsansfont{Roboto}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\definecolor{myblue}{RGB}{1,158,227}
\definecolor{mygray}{RGB}{197,197,197}
\definecolor{textgray}{RGB}{85,85,85}
    \fill[myblue] (0,0)--(2,1)--(2,0.1)--(0.9,-0.5)--(0,0);
    \fill[mygray] (-0.2,-0.1)--(0.9,-0.7)--(0.9,-1.3)--(-0.2,-0.7)--(-0.2,-0.1);
    \fill[myblue] (3.1,0.7)--(4.1,0.3)--(3.1,-0.1)--(3.1,0.7);
    \fill[mygray] (4.3,0.2)--(4.3,-0.7)--(2,-1.5)--(2,-0.7)--(4.3,0.2);
    \node[font=\huge\sffamily\bfseries\color{textgray}] (upper) at (2,-3) {THIS IS SOME TEXT};
    \node[below=5pt of upper,font=\Large\sffamily\color{textgray}] {HELLO WORLD};
\end{tikzpicture}
\end{document}

在此处输入图片描述


我有一个建议,它(可能?)比你的更协调准确。

\documentclass[tikz]{standalone}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\definecolor{myblue}{RGB}{1,158,227}
\definecolor{mygray}{RGB}{197,197,197}
\definecolor{textgray}{RGB}{85,85,85}
    \fill[myblue] (-2.5,0) -- (-2.5,1) -- (0,2) -- (2.5,1) -- (2.5,0) -- (0,1) -- cycle;
    \fill[mygray] (0,0) -- (2.5,1) -- (2.5,0) -- (0,-1) -- (-2.5,0) -- (-2.5,1) -- cycle;
    \draw[line width=2mm,white] (0,0) -- (2.5,1) -- (0,2) -- (-2.5,1) -- cycle;
    \fill[white] (0,.5) rectangle (-1.25,-1) (0,2) rectangle (1.25,.5);
    \node[font=\huge\sffamily\bfseries\color{textgray}] (upper) at (0,-3) {THIS IS SOME TEXT};
    \node[below=5pt of upper,font=\Large\sffamily\color{textgray}] {HELLO WORLD};
\end{tikzpicture}
\end{document}

在此处输入图片描述

从一个非贵校学生的角度来看,我无法确定该标志是否绘制准确。

相关内容