rect

fun rect(x1: Double, y1: Double, x2: Double, y2: Double, color: String = "#000000", strokeWidth: Double = 1.0)(source)

Adds a static rectangle from one corner to the opposite corner.