pub fn rect<T>(size: Size, paint: impl Into<Paint>) -> Painter<T>
Create a new Painter view that draws a rectangle.
Painter