\input fig4tex.tex
%
% 1. Definition of characteristic points
\figinit{pt}
% Vertices of the triangle
\figpt 1:(80.5, 120)
\figpt 2:(-10, -10)
\figpt 3:(130, 20)
% and the barycenter
\figptbary 5:c.g.[1,2,3 ; 1,1,1]
%
% 2. Creation of the graphical file
\figdrawbegin{}
% 1st triangle
\figset (color=\Redrgb, fill=yes)
\figdrawline[1,2,3,1]
% 2nd triangle
\figvectC 10(80,0)
\figptstra 11=1,2,3/1,10/
\figset (color=\Bluergb, alpha=0.7)
\figdrawline[11,12,13,11]
% 3rd triangle
\figvectC 10(-40,-30)
\figptstra 11=11,12,13/1,10/
\figset (color=\ForestGreenrgb, alpha=0.5)
\figdrawline[11,12,13,11]
\figdrawend
%
% 3. Writing text on the figure
\figvisu{\figBoxA}{Red opaque, blue and green two levels of transparency}{
\figwriten 1:(4)
\figwritew 2:(2)
\figwritee 3:(2)
\figset write(mark=$\bullet$)\figwrites 5:$G$(4)
}
\centerline{\box\figBoxA}
\bye