|
\documentclass[tikz]{standalone} |
|
\begin{document} |
|
\begin{tikzpicture}[x=0.2pt,y=-0.2pt,every node/.style={transform shape},scale=2] |
|
|
|
%% Colores |
|
\definecolor{azul} {RGB}{55,133,196} |
|
\definecolor{naranja} {RGB}{224,132,59} |
|
\definecolor{verde} {RGB}{91,181,69} |
|
\definecolor{amarillo}{RGB}{250,219,78} |
|
|
|
%% Estilos |
|
\tikzstyle{todos}=[] |
|
\tikzstyle{hall}=[todos,fill=azul, rounded corners=1, even odd rule] |
|
\tikzstyle{ventana}=[todos,] |
|
\tikzstyle{ala}=[todos,fill=naranja, rounded corners=2] |
|
\tikzstyle{cesped}=[todos,fill=verde] |
|
\tikzstyle{arbol}=[todos,fill=amarillo, rounded corners=2] |
|
|
|
%% Clip inverso (mascara) |
|
% src: http://tex.stackexchange.com/a/12033 |
|
\tikzset{reverseclip/.style={insert path={ |
|
(current page.north east) -- |
|
(current page.south east) -- |
|
(current page.south west) -- |
|
(current page.north west) -- |
|
(current page.north east)} |
|
}} |
|
|
|
%% Edificio principal |
|
\begin{scope} |
|
% Forma del cesped |
|
\begin{pgfinterruptboundingbox} |
|
\path[yshift=3] [clip] (-510,0) -- (-510,495) .. controls (-200, 315) and ( 200, 315) .. (510,495) -- (510,0) -- cycle [reverseclip]; |
|
\end{pgfinterruptboundingbox} |
|
|
|
\path [hall] (-225,0) rectangle (225,350) |
|
[ventana] (-48,140) rectangle (48,230); |
|
\path [ala] (-290,245) rectangle (-70,395); |
|
\path [ala] ( 290,245) rectangle ( 70,395); |
|
\end{scope} |
|
|
|
|
|
%% Cesped |
|
\path[cesped] (-510,495) .. controls (-200, 315) and ( 200, 315) .. ( 510,495) |
|
.. controls ( 200, 365) and (-200, 365) .. (-510,495); |
|
|
|
|
|
%% Arboles |
|
\path[arbol] (-460,455) -- (-500,405) -- (-450,385) -- cycle; % Oeste 1 |
|
\path[arbol] ( 460,455) -- ( 500,405) -- ( 450,385) -- cycle; % Este 1 |
|
\path[arbol] (-370,420) -- (-420,375) -- (-375,355) -- cycle; % Oeste 2 |
|
\path[arbol] ( 370,420) -- ( 420,375) -- ( 375,355) -- cycle; % Este 2 |
|
|
|
\node at (0, 600) {\sffamily\huge Escuela Polit\'ecnica Superior}; |
|
|
|
\end{tikzpicture} |
|
\end{document} |