Many PSTricks and TikZ/PGF options
work just fine in sketch. If generating PSTricks, the code
polygon[fillcolor=lightgray,linewidth=3pt](0,0,1)(1,0,0)(0,1,0) line[linestyle=dotted](-1,-1,-1)(2,2,2)produces

To produce TikZ/PGF, the corresponding code is
polygon[fill=lightgray,line width=3pt](0,0,1)(1,0,0)(0,1,0)
line[style=dotted](-1,-1,-1)(2,2,2)
global { language tikz }
The final global
instructs sketch to produce TikZ/PGF code as output
rather than the default, PSTricks. Note that polygon
fill color and line style options both conform to TikZ
syntax rules. The resulting TikZ/PGF output is
\begin{tikzpicture}[join=round]
\draw[dotted](-1,-1)--(.333,.333);
\filldraw[fill=lightgray,line width=3pt](0,0)--(1,0)--(0,1)--cycle;
\draw[dotted](.333,.333)--(2,2);
\end{tikzpicture}
The remaining examples of this manual are in PSTricks style.