In Processing, drawing shapes is key to the program. Otherwise, nothing would appear on the screen. This section will tell you how basic shapes are drawn.
In OpenCV, one can draw numerous shapes such as point, line, circle, ..., etc. There is an optional for filling a shape. The following code is self-explanatory which shows how shapes are drawn.