\documentclass{article}
\usepackage{xcolor}
\definecolor{darkgrey}{HTML}{333333}
\usepackage{xcoffins}
\begin{document}
\SetHorizontalCoffin\OutputCoffin{}
\SetHorizontalCoffin\RedCoffin
{\color{red!20!white}\rule{0.2 in}{0.2 in}}
\JoinCoffins\OutputCoffin[vc,hc]\RedCoffin[vc,hc]
\SetHorizontalCoffin\BlueCoffin
{\color{blue!20!white}\rule{0.2 in}{0.2 in}}
\JoinCoffins\OutputCoffin[\RedCoffin-vc,\RedCoffin-hc]
\BlueCoffin[b,l]
\SetHorizontalCoffin\GreenCoffin
{\color{green!20!white}\rule{0.2 in}{0.2 in}}
\JoinCoffins\OutputCoffin[\BlueCoffin-vc,\BlueCoffin-hc]
\GreenCoffin[b,l]
\SetHorizontalCoffin\YellowCoffin
{\color{yellow!20!white}\rule{0.2 in}{0.2 in}}
\JoinCoffins\OutputCoffin[\GreenCoffin-vc,\GreenCoffin-hc]
\YellowCoffin[b,l]
\SetHorizontalCoffin \OrangeCoffin
{\color{orange!20!white}\rule{0.2 in}{0.2 in}}
\JoinCoffins\OutputCoffin[\BlueCoffin-t,\BlueCoffin-l]
\OrangeCoffin[b,r]
\TypesetCoffin\OutputCoffin
\end{document}
Based on the documentation of coffins I was trying to compile the above code--how do i complete it??
courtesy @FrankMittelbach for his answer @https://tex.stackexchange.com/a/44159/197451

