tikz를 사용하여 다음 이미지를 그리려고 합니다.
정확히 무슨 일이 일어나는지는 텍스트 상자가 개체 매트릭스 위에 있는 레이어처럼 보인다는 것입니다. 같은 레이어에 있는 것처럼 보이게 하고 싶습니다. 그리고 텍스트 상자 주위의 테두리를 희미하게 만들어 흐릿하게(점진적으로 희미하게) 만들 수 있다면 달성할 수 있을 것이라고 생각합니다.
나는이 질문, 하지만 작동하지 않습니다.
이것이 가능합니까?
코드는 다음과 같습니다 -
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows,automata,calc,shapes, positioning,shadows,shadows.blur,shapes.geometric}
\begin{document}
\scalebox{0.5}{
\begin{tikzpicture}
\tikzset{fontscale/.style = {font=\relsize{#1}}}
\newcommand{\mymacro}{
% Axis
\draw (-0.1,0) -- (1.0,0);
\draw (0,-0.1) -- (0,0.5);
\draw[fill=gray!50] (0.1,0.35) rectangle ++(0.2,0.2);
\draw[fill=gray!50] (0.2,0.07) rectangle ++(0.4,0.2);
% \node (rect) at (0.3,0.4) [draw,minimum height=0.05cm,minimum width=0.2cm,fill=gray!50] {};
% \node (rect) at (0.5,0.2) [draw,minimum height=0.05cm,minimum width=0.3cm,fill=gray!50] {};
};
\begin{scope}
\foreach \x in {1,...,9}
{
\foreach \y in {1,...,9}
{
\begin{scope}[xshift=10\x cm,yshift=10\y cm]
\mymacro
\end{scope}
}
}
\end{scope}
\begin{scope}[xshift=9cm]
\foreach \x in {1,...,9}
{
\foreach \y in {1,...,9}
{
\begin{scope}[xshift=10\x cm,yshift=10\y cm]
\mymacro
\end{scope}
}
}
\end{scope}
\begin{scope}[xshift=18cm]
\foreach \x in {1,...,9}
{
\foreach \y in {1,...,9}
{
\begin{scope}[xshift=10\x cm,yshift=10\y cm]
\mymacro
\end{scope}
}
}
\end{scope}
\begin{scope}[xshift=18cm,yshift=9cm]
\foreach \x in {1,...,9}
{
\foreach \y in {1,...,9}
{
\begin{scope}[xshift=10\x cm,yshift=10\y cm]
\mymacro
\end{scope}
}
}
\end{scope}
\begin{scope}[yshift=9cm]
\foreach \x in {1,...,9}
{
\foreach \y in {1,...,9}
{
\begin{scope}[xshift=10\x cm,yshift=10\y cm]
\mymacro
\end{scope}
}
}
\end{scope}
\begin{scope}[xshift=9cm,yshift=9cm]
\foreach \x in {1,...,9}
{
\foreach \y in {1,...,9}
{
\begin{scope}[xshift=10\x cm,yshift=10\y cm]
\mymacro
\end{scope}
}
}
\end{scope}
\begin{scope}[xshift=115cm,yshift=110cm]
\node[draw,fill=white,scale=3,rounded corners] (temppicnode) {2 proc., 10 tasks$\approx$ 1000+ solutions};
\clip (temppicnode.south west) rectangle (temppicnode.north east);
\pgfmathsetmacro{\mybmax}{sqrt(2)*0.3}
\pgfmathsetmacro{\mystep}{0.3/(20+1)}
\pgfmathsetmacro{\myradstep}{sqrt(2)*0.3/(20+1)}
\foreach \x [evaluate=\x as \mypred using \x-1] in {1,...,20}
{ \pgfmathsetmacro{\myrad}{\mybmax-(\x-1)*\myradstep}
\fill[white,even odd rule,opacity=0.1] ($(temppicnode.south west)+(-0.3,-0.3)$) rectangle ($(temppicnode.north east)+(0.3,0.3)$) [rounded corners=\myrad cm] ($(temppicnode.south west)+(\x*\mystep,\x*\mystep)$) rectangle ($(temppicnode.north east)+(-\x*\mystep,-\x*\mystep)$);
}
%\draw (temppicnode.north east) rectangle (temppicnode.south west);
\fill[white,even odd rule] ($(temppicnode.south west)+(-0.3,-0.3)$) rectangle ($(temppicnode.north east)+(0.3,0.3)$) [rounded corners=0.3 cm] (temppicnode.south west) rectangle (temppicnode.north east);
\end{scope}
%\node[draw=none,fill=white,scale=3,text=white,rounded corners] at (115,110) {2 proc., 10 tasks$\approx$ 1000+ solutions};
%\node[draw=none,fill=white,scale=3] at (115,110) {2 proc., 10 tasks$\approx$ 1000+ solutions};
\end{tikzpicture}}
\end{document}