Posts

Set outline first and fill colors later

Image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0; } 5 I have the following code documentclass[border=5mm]{standalone} usepackage{pgfplots} pgfplotsset{compat=1.10, ticks=none} usepgfplotslibrary{fillbetween} usetikzlibrary{backgrounds, calc, patterns} begin{document} begin{tikzpicture}[scale=4, transform shape] tikzset{ myc/.pic={ draw[line width=2mm] (0, 0) -| (2, 1) -| (1, 2) -| (2, 3) -| cycle; } } path (0,0) pic[fill=green] {myc} (1,3) pic[fill=blue] {myc} (2,6) pic[fill=blue] {myc}; end{tikzpicture} end{document} The code defines the outline of a tile in the line starting with tikzset{ I want to put this tile at various places an...