グラデーションサンプル
レンダリング結果

TeXソース
TeXソース
入力コード
\documentclass[b5j,10pt,twoside]{tetsujsarticle}
\usepackage{tetsuryoku}
\pagestyle{empty}
\begin{document}
基本
1
\begin{tikzpicture}
\shade[left color=black!70!white,right color=white] (0,0) rectangle +(4,1);
\end{tikzpicture}
2
\begin{tikzpicture}
\shade[top color=black!70!white,bottom color=white] (0,0) rectangle +(4,1);
\end{tikzpicture}
3
\begin{tikzpicture}
\shade[outer color=black!30!white,inner color=white] (0,0) rectangle +(4,1);
\end{tikzpicture}
4
\begin{tikzpicture}
\shadedraw[left color=black!70!white,right color=white] (0,0) rectangle +(4,1);
\end{tikzpicture}
5
\begin{tikzpicture}
\shadedraw[top color=black!70!white,bottom color=white] (0,0) rectangle +(4,1);
\end{tikzpicture}
6
\begin{tikzpicture}
\shadedraw[outer color=black!30!white,inner color=white] (0,0) rectangle +(4,1);
\end{tikzpicture}
\begin{center}
\begin{tikzpicture}
\path (0,0) node[outer color=black!30!white,inner color=white] {ほげほげ};
\end{tikzpicture}
\end{center}
テキスト
1
\begin{tikzpicture}
\shade[left color=black!70!white,right color=white] (0,0) rectangle (4,1) node{ほげ};
%\draw (2,0.5) node{\bgt{第1章\ihspace{1zw}名詞}};
\end{tikzpicture}
2
\begin{tikzpicture}
\shade[top color=black!70!white,bottom color=white] (0,0) rectangle +(4,1);
\draw (2,0.5) node{\bgt{第1章\ihspace{1zw}名詞}};
\end{tikzpicture}
3
\begin{tikzpicture}
\shade[outer color=black!30!white,inner color=white] (0,0) rectangle +(4,1);
\draw (2,0.5) node{\bgt{第1章\ihspace{1zw}名詞}};
\end{tikzpicture}
4
\begin{tikzpicture}
\shadedraw[left color=black!70!white,right color=white] (0,0) rectangle +(4,1) node{ほげ};
%\draw (2,0.5) node{\bgt{第1章\ihspace{1zw}名詞}};
\end{tikzpicture}
5
\begin{tikzpicture}
\shadedraw[top color=black!70!white,bottom color=white] (0,0) rectangle +(4,1);
\draw (2,0.5) node{\bgt{第1章\ihspace{1zw}名詞}};
\end{tikzpicture}
6
\begin{tikzpicture}
\shadedraw[outer color=black!30!white,inner color=white] (0,0) rectangle +(4,1);
\draw (2,0.5) node{\bgt{第1章\ihspace{1zw}名詞}};
\end{tikzpicture}
%\tikzstyle{decision} = [diamond, draw, fill=blue!5, text width=6em, text badly centered, node distance=2.5cm, inner sep=0pt]
\tikzstyle{decision} = [left color=black!70!white,right color=white, inner sep=10pt]
\begin{tikzpicture}
\node [decision] (blk) {A block here};
\end{tikzpicture}
\begin{tikzpicture}
\shade[left color=black!70!white,right color=white,line width=2pt] (0,0) -- (1,1) -- (0,2) -- cycle;
\shade[right color=black!70!white,left color=white,line width=2pt] (1,1) -- (2,0) -- (2,2) -- cycle;
\draw (1,1) node{\bgt{名詞}};
\end{tikzpicture}
\begin{tikzpicture}
\shade[left color=black!70!white,right color=white,line width=2pt] (0,0) -- (1,.5) -- (0,1) -- cycle;
\shade[right color=black!70!white,left color=white,line width=2pt] (1,.5) -- (2,0) -- (2,1) -- cycle;
\draw (1,.5) node{\bgt{名詞}};
\end{tikzpicture}
\end{document}