turnedRect

fun turnedRect(canvas: Canvas, x: Float, y: Float, width: Float, height: Float, angle: Float, color: Color)(source)

Fills a rectangle width by height centred on (x, y) and turned by angle radians, in color, with a darker edge: how a rigid box looks.