Example: RGB triangle

Published 2011-12-17 | Author: Andrew Stacey

A triangle with a red, a green and a blue corner, where the colors get mixed as you move up the sides to other corners.

Download as: [PDF] [TEX]

RGB triangle

Do you have a question regarding this example, TikZ or LaTeX in general? Just ask in the LaTeX Forum.
Oder frag auf Deutsch auf TeXwelt.de. En français: TeXnique.fr.

% Author: Andrew Stacey
% http://tex.stackexchange.com/questions/14613
% A triangle with red, blue and green corners and weighted color within
% Based on fadings
  \fill[green] (90:4) -- (210:4) -- (-30:4) -- cycle;
  \fill[blue,path fading=west] (90:4) -- (210:4) -- (-30:4) -- cycle;
  \fill[red,path fading=south] (90:4) -- (210:4) -- (-30:4) -- cycle;


Adding comments is currently not enabled.