addRRect

fun addRRect(rrect: RRect, dir: PathDirection = PathDirection.CLOCKWISE, start: Int = 6): PathBuilder

Adds rounded rectangle to path, creating a new closed contour.

Return

this builder for chaining

Parameters

rrect

bounds and radii of rounded rectangle

dir

direction to wind rounded rectangle

start

index of initial point


fun addRRect(left: Float, top: Float, right: Float, bottom: Float, radii: FloatArray, dir: PathDirection = PathDirection.CLOCKWISE, start: Int = 6): PathBuilder

Adds rounded rectangle to path, creating a new closed contour.

Return

this builder for chaining

Parameters

left

left edge of rounded rectangle

top

top edge of rounded rectangle

right

right edge of rounded rectangle

bottom

bottom edge of rounded rectangle

radii

array of 8 radius values, 2 for each corner

dir

direction to wind rounded rectangle

start

index of initial point