draw¶ void kn::draw::rect(Rect &rect, const Color color, int thickness = 0)¶ Draw a rectangle. Note If thickness remains 0, the rectangle will be filled. Parameters: rect – The rectangle to draw. color – The color of the rectangle. thickness – The thickness of the rectangle.