패턴으로 텍스트 채우기

패턴으로 텍스트 채우기

텍스트에 색상을 지정할 수 있습니다.

\documentclass{standalone}
\usepackage{xcolor}
\begin{document}
{\textcolor{green}{\Large I}}
\end{document}

여기에 이미지 설명을 입력하세요

영역은 다음으로 채워질 수 있습니다 patterns:

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}
\draw[pattern=bricks, pattern color=green] (0,0) -- (0,1) -- (1,1) -- (1,0) -- cycle;
\end{tikzpicture}
\end{document}

무늬가 있는 사각형

문자나 기호를 로 어떻게 채울 수 있나요 pattern?

예를 들어 녹색 벽돌로 채워진 "I"는 다음과 같습니다.

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}
% shouldn't need to trace a symbol!
\draw[pattern=bricks, pattern color=green] (0,0) -- (3,0) -- (3,1) -- (2,1) -- (2,3) -- (3,3) -- (3,4) -- (0, 4) -- (0,3) -- (1,3) -- (1,1) -- (0,1) -- cycle;
\end{tikzpicture}
\end{document}

여기에 이미지 설명을 입력하세요

답변1

개념적으로 이것은 다음과 매우 유사합니다.이 답변.

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{fadings,patterns}
\begin{document} 
\newcommand\textpattern[2][pattern=bricks]{%
\begin{tikzfadingfrompicture}[name=letter]
\node [text=transparent!0,scale=10,font=\bfseries\sffamily] {#2};
\end{tikzfadingfrompicture}
\begin{tikzpicture}
\node [opacity=0,scale=10,font=\bfseries\sffamily] (aux) {#2};
\path[path fading=letter,fit fading=false,#1]
    (aux.south west) rectangle (aux.north east);
\end{tikzpicture}}
\textpattern{Hello}

\textpattern[pattern=bricks,pattern color=green]{world!}
\end{document}

여기에 이미지 설명을 입력하세요

관련 정보