%% Semitransparent Polygons
% Create two semitransparent polygons by setting the |FaceAlpha| property
% to a value between |0| and |1|.

% Copyright 2015 The MathWorks, Inc.


%%
v1 = [2 4; 2 8; 8 4];
f1 = [1 2 3];
figure
patch('Faces',f1,'Vertices',v1,'FaceColor','red','FaceAlpha',.3);

v2 = [2 4; 2 8; 8 8];
f2 = [1 2 3];
patch('Faces',f2,'Vertices',v2,'FaceColor','blue','FaceAlpha',.5);
