Document transparencies

This commit is contained in:
John Whitington 2023-06-06 17:20:47 +01:00
parent e42f1229a7
commit 7bfa934ebb
3 changed files with 18 additions and 0 deletions

Binary file not shown.

View File

@ -4380,6 +4380,24 @@ Lines may have dash patterns. A dash pattern consists of one or more numbers. Al
\noindent\verb!-fill-opacity! Set opacity\\
\noindent\verb!-stroke-opacity! Set stroke opacity
\end{framed}}
We can set fill and stroke transparencies, between 0 (fully transparent) and 1 (fully opaque):
\begin{framed}
\noindent\small\verb?cpdf -create-pdf AND -draw -fill-opacity 0.5"?\\
\noindent\small\verb?-circle "250 300 150" -fill -circle "350 300 150" -fill?\\
\noindent\small\verb?-o out.pdf?
\end{framed}
\noindent Here is the result:
\bigskip
\fbox{\includegraphics[width=0.3\textwidth]{manualimages/trans.pdf}}
\bigskip
\noindent Notice that we used \texttt{-fill} twice, to ensure each circle was in a different path. If they had been part of the same path, the effect would be different.
\section{Text}
{\small\begin{framed}

BIN
manualimages/trans.pdf Normal file

Binary file not shown.