I've tested a code sample which uses circle(), but what surprises is me that the RGB-color parameter passed with Scalar(0, 0, 255) is interpreted as RED. It turns out that the color parameter is interpreted as B,G,R which is backward.
Is this intentional?