Hmm, but if you look at the definition of rectangle itself it states

 C++: void rectangle(Mat& img, Point pt1, Point pt2, const Scalar& color, int thickness=1, int lineType=8, int shift=0)

I myself think that it is bad practice to use macro's if it can be easily defined like the documents suggest. Or am I missing something? It is not always easy to find the meaning of those macro's in the documents.

However I do notice now that it is a RGB constructur and that the Scalar takes the BGR form. So I guess changing the second scalar to cv::Scalar(0,255,255) will do exactly what was expected right?