Cant see with this example if hard coded or not as boxRect.left , .up etc. and Color1 & 2 and later code out of context ,but r,g,b could be colors. And why put colors or code if no behaviour at all?